www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - static assert

reply "Jack Applegame" <japplegame gmail.com> writes:
Another funny thing.

import std.conv;
static assert(0, "1 != " ~ text(2));

outputs
Error: static assert  ['1',' ','!','=',' ','2']
Nov 29 2012
parent "bearophile" <bearophileHUGS lycos.com> writes:
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
Nov 29 2012