On 02.09.2018 15:45, bauss wrote:
On Sunday, 2 September 2018 at 13:26:55 UTC, Petar Kirov [ZombineDev] wrote:
It's intended, but with the possibility to add special syntax for local declarations in the future left open, as per: https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1010.md#local-declarations

Is there any plans to implement it soon

It has been implemented for a long time (which you will find is actually clearly stated if you follow the link above). The only blocker is finding a good syntax. Currently, it would be:

static foreach(i;0..2){
    __local enum x = 2;
}

or is this going to be another half done feature?
The feature is complete. There are just some further features that might go well with it.

Reply via email to