Immutable static arrays
Daniel Murphy
yebblies at nospamgmail.com
Fri Mar 16 21:51:01 PDT 2012
"H. S. Teoh" <hsteoh at quickfur.ath.cx> wrote in message
news:mailman.806.1331959335.4860.digitalmars-d at puremagic.com...
>
> Argh. So I have to hack around this by casting an immutable static array
> key into a mutable one inside the AA? (Which should work, I suppose,
> because a copy is being made.) Or should I just leave this alone for now
> and wait for dmd to be fixed?
>
>
I think the bug only applies to the constructor.
Up to you. If you use a workaround, try and put a static assert in that
will fail when the bug's fixed.
More information about the Digitalmars-d
mailing list