[Issue 2947] Array literal changeable if part of class.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Sat Dec 5 09:13:17 PST 2015
https://issues.dlang.org/show_bug.cgi?id=2947
--- Comment #10 from Jakob Ovrum <jakobovrum at gmail.com> ---
(In reply to Jakob Ovrum from comment #9)
> (In reply to yebblies from comment #8)
> > How exactly would putting the array in TLS fix this bug?
>
> Sigh, like I said, the code in the bug report is *not* a bug.
That said, as has been suggested in the case of class types, it might be a
sensible solution to disallow mutable types in these cases, in which case it's
"accepts invalid".
--
More information about the Digitalmars-d-bugs
mailing list