Thread overview
wchar[] concatenation bug (dmd 0.131 win32)
Sep 15, 2005
zwang
Sep 15, 2005
Derek Parnell
Sep 16, 2005
Thomas Kühne
September 15, 2005
import std.stdio;
void main(){
    const wchar[] S = "bug"w;
    writefln(S ~ "s"w); //the output is messed up.
    assert(0); //more surprisingly, this line is never called.
}
September 15, 2005
On Thu, 15 Sep 2005 11:13:25 +0800, zwang wrote:

> import std.stdio;
> void main(){
>      const wchar[] S = "bug"w;
>      writefln(S ~ "s"w); //the output is messed up.
>      assert(0); //more surprisingly, this line is never called.
> }

Here is my spin ....

import std.stdio;

void main(){
    debug(CONST)
    {
     const wchar[] S = "bug"w; // Doesn't work!
    }
    else
    {
     wchar[] S = "bug"w; // Works!
    }

     writefln("%s", S ~ "s"w);
     assert(0); // Always called and aborts accordingly.
}


-- 
Derek
(skype: derek.j.parnell)
Melbourne, Australia
15/09/2005 1:43:09 PM
September 16, 2005
zwang schrieb:

> import std.stdio;
> void main(){
>     const wchar[] S = "bug"w;
>     writefln(S ~ "s"w); //the output is messed up.
>     assert(0); //more surprisingly, this line is never called.
> }

Added to DStress as http://dstress.kuehne.cn/norun/opCat_16_A.d http://dstress.kuehne.cn/norun/opCat_16_B.d

Thomas