The One-Letter Nested Function - a sample article for some kindof D "gems" website

Daniel Murphy yebblies at nospamgmail.com
Mon Feb 13 08:17:02 PST 2012


"Andrej Mitrovic" <andrej.mitrovich at gmail.com> wrote in message 
news:mailman.283.1329140648.20196.digitalmars-d at puremagic.com...
> The only problem is I can't seem to make it static:
> static u = (int a, int b) => cast(ubyte)uniform(a, b);

auto u = function (int a, int b) => cast(ubyte)uniform(a, b);

Should do it. 




More information about the Digitalmars-d mailing list