Aliasing lambdas

Timon Gehr timon.gehr at gmx.ch
Sun Jan 13 12:07:22 PST 2013


On 01/13/2013 08:55 PM, Peter Alexander wrote:
> Is there any reason why this isn't allowed:
>
> alias f = (x => x);
>
> but this is:
>
> template A(alias B) { alias A = B; }
> alias f = A!(x => x);
>
> ???

No. It is a gratuitous grammar limitation.


More information about the Digitalmars-d mailing list