DIP26: properties defined

FG home at fgda.pl
Fri Feb 8 23:16:04 PST 2013


On 2013-02-09 02:36, Timon Gehr wrote:
> "Taking the address of a property
>
> As this is illegal for properties..."
>
> @property ref int foo();
> int* y = &(&foo)();

Yes, but this DIP makes it invalid to define a @property ref T foo().
To use ref it would have to be a normal function: ref T foo().
So finally this example no longer ruins the property construct. :)


More information about the Digitalmars-d mailing list