checkedint call removal

Daniel Murphy via Digitalmars-d digitalmars-d at puremagic.com
Wed Jul 30 06:48:10 PDT 2014


"Walter Bright"  wrote in message news:lr8t23$kof$1 at 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. 



More information about the Digitalmars-d mailing list