DIP65: Fixing Exception Handling Syntax
Brian Schott via Digitalmars-d
digitalmars-d at puremagic.com
Mon Jul 28 14:46:53 PDT 2014
On Monday, 28 July 2014 at 20:51:55 UTC, Timon Gehr wrote:
> Both are ambiguous for the same reason. They are ambiguous
> because there exist delegate/function literals of the form
>
> enum e={ return 2; }();
> ^~~~~~~~~~~~~
> an expression
ForeachStatement:
... NoScopeNonEmptyStatement
...
PrimaryExpression:
FunctionLiteral
FunctionLiteral:
FunctionBody
FunctionBody:
BlockStatement
I had forgotten about this particular WTF.
More information about the Digitalmars-d
mailing list