local enum

Mr.Bingo Bingo at Namo.com
Sun Jul 8 18:45:48 UTC 2018


On Sunday, 8 July 2018 at 11:29:23 UTC, Seb wrote:
> 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

Interesting. A lot of goodies in that Dip! I guess we won't get 
any crackers though?


More information about the Digitalmars-d mailing list