static assert

bearophile bearophileHUGS at lycos.com
Thu Nov 29 04:38:52 PST 2012


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


More information about the Digitalmars-d-learn mailing list