proposal to disambiguate &a.fun: disable optional parenthesis INSIDE &() expression

Timon Gehr timon.gehr at gmx.ch
Mon Feb 4 06:42:42 PST 2013


On 02/04/2013 02:37 PM, FG wrote:
> ...
> The change in behavior of &(expr) makes sense in the light that "expr"
> should behave the same in every context, not just in &(...), i.e. call foo().
> ...

The entire optional parens/@property thing is about (limited) 
context-dependent behaviour! This line of reasoning is simply wrong.

There is no difference whatsoever between &expr and &(expr).



More information about the Digitalmars-d mailing list