Thread overview | |||||
---|---|---|---|---|---|
|
September 15, 2005 wchar[] concatenation bug (dmd 0.131 win32) | ||||
---|---|---|---|---|
| ||||
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 Re: wchar[] concatenation bug (dmd 0.131 win32) | ||||
---|---|---|---|---|
| ||||
Posted in reply to zwang | 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 Re: wchar[] concatenation bug (dmd 0.131 win32) | ||||
---|---|---|---|---|
| ||||
Posted in reply to zwang Attachments: | 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 |
Copyright © 1999-2021 by the D Language Foundation