@property needed or not needed?

Adam D. Ruppe destructionator at gmail.com
Tue Nov 20 05:35:13 PST 2012


On Tuesday, 20 November 2012 at 06:06:21 UTC, deadalnix wrote:
> I'm not sure how it fit in the DIP but &funName is ambiguous 
> when funName return a reference.

We can just define this away: &funName if it isn't a @property is 
the address of the function.

If it is a @property, ALL operations work on the return value, so 
it is rewritten as &(funName()).



More information about the Digitalmars-d mailing list