[Issue 1185] assignment failure

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Apr 24 03:32:57 PDT 2007


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





------- Comment #1 from afb at algonet.se  2007-04-24 05:32 -------
This is by language design, the code is not using COW.
(should use a a.dup, before trying to assign anything)

See http://www.digitalmars.com/d/dcompiler.html#linux :
Differences from Win32 version
* String literals are read-only. Attempting to write to them will cause a
segment violation.
Same goes for GDC, see the "writable-strings" settings.


-- 



More information about the D.gnu mailing list