Lambda syntax for methods and functions

Timon Gehr timon.gehr at gmx.ch
Sat Dec 7 12:23:28 PST 2013


On 12/07/2013 07:13 PM, bearophile wrote:
>
> Currently in D you can write:
>
> enum move = (in int dx, in int dy) pure nothrow => Point(X + dx, Y + dy);

IIRC Don said this shouldn't work since the context is not actually 
known at compile time.


More information about the Digitalmars-d mailing list