How to make a static immutable associative array using assocArray in CT?
monkyyy
crazymonkyyy at gmail.com
Tue Feb 10 21:14:29 UTC 2026
On Tuesday, 10 February 2026 at 20:46:11 UTC, realhet wrote:
> Hi,
```d
enum int[string] foo=(){
int[string] o;
o["hi"]=2;
o["bye"]=3;
o["hi"]=4;
return o;
}();
```
More information about the Digitalmars-d-learn
mailing list