"Walter Bright"  wrote in message news:lr8t23$kof$1...@digitalmars.com...

To have an assert despite -release, you can do things like:

    assert(exp);  =>  if (!exp) assert(0);

dmd does currently implement it that way, but the spec explicitly says the compiler may assume it is unreachable and optimize based on that.

'halt' is what you should be calling if you want to guarantee a halt in -release mode.

Reply via email to