On Tue, 09 Dec 2008 10:26:29 +0300, Ellery Newcomer <[EMAIL PROTECTED]> wrote:
Also, I would be trying to compile with DMD, but I have evidently
managed to crash the compiler, and I don't know if it's DMD's fault or
mine. It reports an Internal Error in e2ir.c at line 3904. (not being a
C++ guru, the line "assert(n2->Enumbytes);" doesn't mean much to me)
That was with DMD 1.037, Tango 0.997, and using dsss to build.
This is a bug for sure. Could you please post a code sample that causes this
behavior (a small one, if possible)?
On an unrelated note, is this code supposed to be incorrect?
wchar[] w = (true)? "true":"false";
--> Error: cannot implicitly convert expression ("true") of type char[]
to wchar[]
or should it be reported as a bug?
Yes it is correct. You need to specify return type explicitly by making at
least one of the arguments wide:
wchar[] w = true ? "true"w : "false";
wchar[] w = true ? "true" : "false"w;
wchar[] w = true ? "true"w : "false"w;