Last - but not least! - two DConf talks
via Digitalmars-d-announce
digitalmars-d-announce at puremagic.com
Sat Jul 18 02:43:26 PDT 2015
On Friday, 17 July 2015 at 18:58:04 UTC, Jacob Carlborg wrote:
> On 2015-07-17 15:00, "Marc =?UTF-8?B?U2Now7x0eiI=?=
> <schuetzm at 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...
More information about the Digitalmars-d-announce
mailing list