checkedint call removal
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 30 11:51:52 PDT 2014
On 7/30/2014 11:24 AM, H. S. Teoh via Digitalmars-d wrote:
> If you want the check to always be there, use enforce, not assert.
enforce is NOT for checking program logic bugs, it is for checking for possible
environmental failures, like writing to a read-only file.
If you want an assert to be there even in release mode,
assert(exp) => exp || assert(0)
More information about the Digitalmars-d
mailing list