[Issue 1001] print stack trace (in debug mode) when program die

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Feb 5 05:28:32 PST 2010


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



--- Comment #15 from Witold Baryluk <baryluk at smp.if.uj.edu.pl> 2010-02-05 05:28:30 PST ---
(In reply to comment #14)
> Exception handling is for error conditions, not flow control.  If someone is
> actually constructing exceptions for some other purpose then they're using the
> wrong tool :-)

Well, yes you are right. I just checked my old code which i was thinking is
using heavly EH for flow control. But I wasn't so stupid :) EH is only used for
escaping in rare ocasions (not for error conditions but for flow control, yes,
but i'm comparing more throw here to break; like in for/while, than to
continiue :) )

Sorry for the problem. 


Anyway in documentation of this functionality I think there should be the
statment that stacktrace is only intended to help in debuging and crash
reporting, and no code should directly depend on the fact  that returned
backtrace is nonempty or correct. (becuase in one can set traceHandler to null,
or disabled it in -release mode for example).

-- 
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