Aliasing multiple delegates to the same name - very strange behaviour

Meta jared771 at gmail.com
Sun Feb 25 05:16:21 UTC 2018


On Sunday, 25 February 2018 at 04:59:58 UTC, Basile B. wrote:
> Use templates to prevent implicit conversion:
>
> alias f(T = int) = (T n) => 0;
> alias f(T = char) = (T n) => 'a';
> alias f(T = bool) = (T n) => false;
>
> Bug report is invalid and can be closed.

Please don't be so hasty. The main focus of that defect is 
whether it is a bug or a feature that the same alias can be 
declared multiple times. I've updated the title to reflect that.


More information about the Digitalmars-d mailing list