version(assert) and Phobos release unittest build

Dicebot public at dicebot.lv
Thu Nov 28 08:59:27 PST 2013


version(assert) is negated by -unittest at all actually:

import std.stdio;

void main()
{
     version ( assert )
     {
         writeln("errr");
     }
}

$ rdmd -release test.d
$ rdmd -release -unittest test.d
errr

That is so bad >_<


More information about the Digitalmars-d-learn mailing list