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)

Reply via email to