November 29, 2012 static assert | ||||
---|---|---|---|---|
| ||||
Another funny thing. import std.conv; static assert(0, "1 != " ~ text(2)); outputs Error: static assert ['1',' ','!','=',' ','2'] |
November 29, 2012 Re: static assert | ||||
---|---|---|---|---|
| ||||
Posted in reply to Jack Applegame | Jack Applegame:
> import std.conv;
> static assert(0, "1 != " ~ text(2));
>
> outputs
> Error: static assert ['1',' ','!','=',' ','2']
This is known problem, it's already in Bugzilla, and maybe there's already a patch for it (there are about one hundred patches waiting in Bugzilla).
Bye,
bearophile
|
Copyright © 1999-2021 by the D Language Foundation