[Issue 4539] Refuse assignment to string literal
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Jun 4 23:24:06 PDT 2011
http://d.puremagic.com/issues/show_bug.cgi?id=4539
--- Comment #10 from Kenji Hara <k.hara.pg at gmail.com> 2011-06-04 23:19:38 PDT ---
I think the main problem is that dmd treats string literal as lvalue.
Lvalue can appear on left hand side of assignment, so string literal now
asignable.
Patch comment #7 fixes this behavior, and this change also refuse string
literal on ref parameter as a side effect.
It seems to me that it is correct refusing string literal on ref parameter.
So this change breaks existing code.
(If D specification treats string literal specially, my think is mistaken.
But it might be not.)
--
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
More information about the Digitalmars-d-bugs
mailing list