Assert prints an "array of char" when used why to!string
Ali Çehreli
acehreli at yahoo.com
Fri Jul 27 10:37:07 PDT 2012
On 07/27/2012 09:02 AM, monarch_dodra wrote:
> On Friday, 27 July 2012 at 11:56:07 UTC, bearophile wrote:
>> monarch_dodra:
>>
>>> 1) Is this the "normal" behavior, or a "known limitation"?
>>
>> It seems a DMD bug, why don't you add it to Bugzilla?
>>
>>
>>> 2) Is there a "workaround"?
>>
>> static assert(0, text("Failure: ", 55));
>>
>> Bye,
>> bearophile
>
> Thanks. I'll create an entry in bugzilla.
Thanks. I hope that will fix the Unicode ignorance of 'static assert' as
well:
static assert(false, "aüz");
produces the following output:
Error: static assert "a\xc3\xbcz"
Ali
More information about the Digitalmars-d-learn
mailing list