[OT] Programming language WATs

Zachary Lund admin at computerquip.com
Fri Jan 20 19:10:18 PST 2012


On 01/20/2012 08:44 PM, Andrej Mitrovic wrote:
> Probably Windows-only:
>
> void main()
> {
>      string a = "foo";
>      "foo" = "bar";
>      writeln(a);  // "foo"
>      assert(a == "foo");  // failure
> }

I think this is a bug. This causes a segmentation fault on Linux DMD 
2.057. Plus, assigning a literal to a literal doesn't make sense...


More information about the Digitalmars-d mailing list