local enum
Seb
seb at wilzba.ch
Sun Jul 8 11:29:23 UTC 2018
On Saturday, 7 July 2018 at 18:48:35 UTC, Mr.Bingo wrote:
> static foreach and enum do not play nice together!
>
> import std.meta, std.stdio;
> import std.string : leftJustify, center, rightJustify;
> alias functions = staticMap!(ApplyRight!(Instantiate, string),
> leftJustify, center, rightJustify);
>
> [...]
__local has actually been suggested and implemented as part of
DIP 1010. IIRC it was removed because A&W wanted to see how
static foreach plays out.
https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1010.md
More information about the Digitalmars-d
mailing list