[Issue 4755] assert(0,"...") error message

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Aug 29 10:50:56 PDT 2010


http://d.puremagic.com/issues/show_bug.cgi?id=4755


Andrej Mitrovic <andrej.mitrovich at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |andrej.mitrovich at gmail.com


--- Comment #1 from Andrej Mitrovic <andrej.mitrovich at gmail.com> 2010-08-29 10:50:43 PDT ---
assert(0) is special. It's not meant for debugging, it's meant as a "this piece
of code should never have been reached, shut down the application", at least in
release mode.

>From TDPL:

"In non-release mode, assert(false) does not do anything special, it just
throws an AssertError exception"

"In release mode assert(false) will always cause a program to stop. There will
be no exception, the program will crash by executing the HLT instruction"

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list