Anonymous function syntax

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Thu Sep 22 14:21:19 PDT 2011


On 9/22/11 4:03 PM, Steven Schveighoffer wrote:
> On Thu, 22 Sep 2011 16:54:55 -0400, Andrei Alexandrescu
> <SeeWebsiteForEmail at erdani.org> wrote:
>
>
>> 4. Add this rewrite to the grammar:
>>
>> (comma_separated_parms) => expression
>>
>> translates to
>>
>> (comma_separated_parms) => expression
>
> Am I missing something here?

I am. The rewrite should be:

(comma_separated_parms) { return expression; }


Andrei


More information about the Digitalmars-d mailing list