Lambda syntax, etc

Kagamin spam at here.lot
Mon Feb 9 02:24:46 PST 2009


Denis Koroskin Wrote:

> Could be used as follows:
> 
> foo( (i) { ++i; } );

Holy shi-
Now feel some real power, Luke. :)

foo( i => ++i );

>     foo((i){ ++i; }); // error
>     foo((i){ ++i; return;}); // unambiguous
>     foo((i){ return ++i;}); // unambiguous



More information about the Digitalmars-d mailing list