assert(0)
Fyodor Ustinov via Digitalmars-d
digitalmars-d at puremagic.com
Sat Nov 7 10:42:09 PST 2015
Hi!
I carefully read the
http://www.digitalmars.com/d/archives/digitalmars/D/assert_0_behavior_269336.html and still have question.
Well. assert(0) located in very-very dangerous place. If we
suddenly got to this place - Program should die immediately,
otherwise there will be something terrible.
But without "-release" this place less dangerous? Why without
"-release" this assert behaves like any other (throw exception
and we can cath it, for example)?
I think assert(0) should have the same behavior with "-release"
and without. May be "HLT instruction", may be "throw exception",
but _the same_.
WBR,
Fyodor.
More information about the Digitalmars-d
mailing list