assume, assert, enforce, @safe

Sebastiaan Koppe via Digitalmars-d digitalmars-d at puremagic.com
Fri Aug 1 10:19:08 PDT 2014


If assertions are disabled in release builds, and you 
specifically instruct the compiler to build one, are you not 
assuming that the assertions will hold?

Then what is wrong with extending those assumptions to the 
optimizer?

Unless the assertions trigger in debug build, you will not end up 
with bugs in the release.


More information about the Digitalmars-d mailing list