[Issue 4539] Refuse assignment to string literal

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sat Jul 31 17:30:26 PDT 2010


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


Don <clugdbug at yahoo.com.au> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |clugdbug at yahoo.com.au
           Severity|normal                      |major


--- Comment #4 from Don <clugdbug at yahoo.com.au> 2010-07-31 17:30:23 PDT ---
(In reply to comment #3)
> Yeah, it does not make sense at all. But it gets worse:
> 
> import std.stdio;
> 
> void main() {
>     "hello" = "red";
>     string x = "hello";
>     writeln(x);
> }
> 
> Writes "red"
> 
> That's not good. :)

Ouch!

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