November 18, 2017 Re: Should aliasing a lambda expression be allowed? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jonathan M Davis | 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. |
Copyright © 1999-2021 by the D Language Foundation