Lambda syntax, etc

Nick Sabalausky a at a.a
Wed Feb 4 21:49:58 PST 2009


"Nick Sabalausky" <a at a.a> wrote in message 
news:gmdtjl$2f4j$1 at digitalmars.com...
>
> // "func" used to disambiguate between function call and function 
> declaration
> func add { |int <- int x, int y |
>    return x+y;
> }
>

This one has the added benefit of making it easy to distinguish between an 
attribute of the function and an attribute of the function's return value 
(Although I guess that's not much of an issue with the current versions of 
D2). 





More information about the Digitalmars-d mailing list