The One-Letter Nested Function - a sample article for some kind of D "gems" website
andrej.mitrovich at gmail.com
Mon Feb 13 06:21:53 PST 2012
On 2/13/12, David Nadlinger <see at klickverbot.at> wrote:
> This could never work without major changes to the language, because 'u'
> cannot be assigned a type.
Yeah, the syntax is wrong. I found bear's post and the syntax:
alias (x => x ^^ 2) sqrTemplate;
So it would be:
alias ((a, b) => cast(ubyte)uniform(a, b)) u;
More information about the Digitalmars-d