[Issue 1654] Array concatenation should result in mutable or invariant depending on usage

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 28 12:07:17 PDT 2008


http://d.puremagic.com/issues/show_bug.cgi?id=1654





------- Comment #12 from htvennik at zonnet.nl  2008-03-28 14:07 -------
Yes, you are right here... The rule doesn't apply to NewExpressions if they
produce a class instance that may contain a pointer to mutable data. So best
would be to not apply it to class instances at all (to keep the rule simple).

But it still holds for concatenating arrays of value types and for
NewExpressions that produce a struct instance.


-- 



More information about the Digitalmars-d-bugs mailing list