How to declare function with the same call signature as another?

ketmar via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Nov 23 15:21:53 PST 2016


On Wednesday, 23 November 2016 at 23:02:30 UTC, Tofu Ninja wrote:
> Being able to get an alias to (ref int) seems like a bug.

you are unable to alias it, `ref` will be erased on aliasing. the 
only way to retain it is to have a tuple with it. that trick 
aliases *function* *argument* *tuple*, not a single type.

yeah, `ref` is very special beast. but it is still type modifier. 
;-)


More information about the Digitalmars-d-learn mailing list