[Issue 2947] Array literal changeable if part of class.
    via Digitalmars-d-bugs 
    digitalmars-d-bugs at puremagic.com
       
    Sat Mar 19 08:45:15 PDT 2016
    
    
  
https://issues.dlang.org/show_bug.cgi?id=2947
--- Comment #13 from yebblies <yebblies at gmail.com> ---
(In reply to Jakob Ovrum from comment #12)
> (In reply to yebblies from comment #11)
> > Well, you're wrong.  It should not be shared between class instances at all.
> 
> It would be consistent with every other static initializer in the language.
> If you're going to take a stand please provide some kind of rationale,
> otherwise surely the exercise is just meaningless noise.
I have no idea why you think that two class instances automatically sharing
mutable state is intentional.  There's plenty of discussion in the duplicates
of this bug.
--
    
    
More information about the Digitalmars-d-bugs
mailing list