static assert

Jack Applegame japplegame at gmail.com
Thu Nov 29 04:25:30 PST 2012


Another funny thing.

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

outputs
Error: static assert  ['1',' ','!','=',' ','2']


More information about the Digitalmars-d-learn mailing list