> /*immutable*/ E_MODE[string] a_mode;
> 
> static this () {
>     foreach (m; __traits(allMembers, E_MODE))
>         mixin(`a_mode["` ~ m ~ `"] = E_MODE.` ~ m ~ `;`);
> }

How do you build an immutable AA that is global or local to a function?

Bye,
bearophile

Reply via email to