As of 2023, we still cannot declaring a constant string[char] AA?

mw mingwu at gmail.com
Tue May 16 23:17:52 UTC 2023


Hi,

I just run into this problem again:

https://stackoverflow.com/questions/26861708/what-is-the-syntax-for-declaring-a-constant-stringchar-aa

So, the solution still is to use:
```
static this () {
   ...
}
```

What happened to this comments:
"""
It should be noted that this restriction will eventually go away, 
once there is a solid library implementation of associative 
arrays. There is currently work in progress to this effect, which 
seems to be nearing completion. –
Meta  Nov 14, 2014 at 17:41
"""

Still not there yet, after ~10 years?


More information about the Digitalmars-d-learn mailing list