Programming for std.log
David Nadlinger
see at klickverbot.at
Sun Feb 12 14:14:50 PST 2012
On 2/12/12 11:11 PM, Adam D. Ruppe wrote:
> On Sunday, 12 February 2012 at 21:43:57 UTC, Jose Armando Garcia wrote:
>> Very helpful advice! I narrowed it down to:
>>
>> $ cat format spec.d
>> import std.format;
>> void main() {
>> static assert(is(Unqual!char == char));
>> FormatSpec!char spec;
>> }
>>
>> ../dmd/src/dmd -w format spec.d
>> format spec.d(4): Error: static assert (is(Unqual!(char) == char)) is
>> false
>>
>> This is suppose to be true, no?
>
>
> It is if you import std.traits. I don't think
> the Unqual template is in scope there which is why
> the is() fails.
Could be related to the selective import (bug 314) fix, maybe std.format
is missing an import or a related DMD regression was introduced.
David
More information about the Digitalmars-d
mailing list