[Issue 2093] string concatenation modifies original
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Nov 22 11:34:38 PST 2008
http://d.puremagic.com/issues/show_bug.cgi?id=2093
smjg at iname.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Severity|enhancement |normal
Keywords| |accepts-invalid, spec
------- Comment #11 from smjg at iname.com 2008-11-22 13:34 -------
So the problem is that it _always_ leaves the decision to resize in place or
reallocate to the runtime. The only way in which this can coexist with the
principle of invariant is that it is illegal to increase the length of a
const/invariant array. Therefore, going by the current spec, the bug is that
DMD accepts the code.
--
More information about the Digitalmars-d-bugs
mailing list