The One-Letter Nested Function - a sample article for some kind of D "gems" website
David Nadlinger
see at klickverbot.at
Mon Feb 13 05:46:56 PST 2012
On 2/13/12 2:43 PM, Andrej Mitrovic wrote:
> auto u = (a, b) => cast(ubyte)uniform(a, b);
>
> Which would make 'u' a template. I'm not sure what the exact syntax
> was that was requested though.
This could never work without major changes to the language, because 'u'
cannot be assigned a type.
David
More information about the Digitalmars-d
mailing list