assert(0)
Fyodor Ustinov via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 7 13:24:00 PST 2015
Colleagues, IMHO:
If "assert" catch "fundamental programmers errors" - it should
hang programm immediately with and without "-release".
If "assert" catch not "too fundamental" errors - assert(0) should
emit "Error" in both cases.
Third option - assert(0) - it's a "special case" and halt program
in both cases.
But there should't be so that in one case the "fundamental error"
and the other "not fundamental".
It's my opinion.
WBR,
Fyodor.
More information about the Digitalmars-d
mailing list