[Issue 4539] Refuse assignment to string literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 31 08:48:14 PDT 2010


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



--- Comment #2 from bearophile_hugs at eml.cc 2010-07-31 08:48:12 PDT ---
I think that's not relevant, I think that refers to changing the content of a
variable initialized with a string literal (plus cast to mutable).

But the code I have shown is meaningless, because a string can't be a lvalue.
It's like doing:

void main() {
    5 = 7;
}

-- 
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