DIP23 draft: Fixing properties redux

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Sun Feb 3 21:36:10 PST 2013


On 2/3/13 11:31 PM, Jonathan M Davis wrote:
> I tend to agree that making the parens change the nature of the expression is
> a bad idea.

I think there's some misunderstanding here. Parens change the nature of 
expressions ALL the time.

There is a weird rule in C++11 that makes sometimes typeof(expr) and 
typeof((expr)) mean different things. That is arguably an example to 
avoid. But introducing parens among parts of an expression is expected 
to affect meaning.


Andrei


More information about the Digitalmars-d mailing list