Should aliasing a lambda expression be allowed?
Timon Gehr
timon.gehr at gmx.ch
Sat Nov 18 12:58:52 UTC 2017
On 15.11.2017 15:07, Jonathan M Davis wrote:
> In general, alias aliases symbols, whereas a lambda isn't a symbol. ...
There is essentially no merit to the symbol/no symbol distinction. It's
just a DMD implementation detail resulting in weird inconsistencies
between alias declarations and alias template parameters that are being
fixed one by one.
> ...
> alias foo = int;
> alias foo = float;
Case in point. Neither int nor float are symbols.
More information about the Digitalmars-d
mailing list