On Friday, 17 July 2015 at 18:58:04 UTC, Jacob Carlborg wrote:
On 2015-07-17 15:00, "Marc =?UTF-8?B?U2Now7x0eiI=?= <schue...@gmx.net>" wrote:

That could only happen after semantic analysis, but the ambiguity needs
to be resolved during parsing.

Aren't there other things in D that already have this problem:

auto a = foo;

Is "foo" a variable or a method?

The AST for this statement would look something like:

(DeclStatement type=(Keyword "auto") name=(Identifier "a") value=(AssignExpression exp=(VariableOrParenlessCall var=(Identifier "foo"))))

This would probably be considerably harder for trailing delegates...

Reply via email to