Anonymous function syntax

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Wed Sep 21 15:50:51 PDT 2011


On 9/21/11 5:29 PM, bearophile wrote:
> Walter Bright:
>
>> D
>>       (a,b) { return a + b; }
>
> In D to define a true lambda you need types too:
> auto f = (int a,int b){ return a + b; };

No.

Andrei


More information about the Digitalmars-d mailing list