[Issue 7018] thrown Error from different thread should lead to program abort

d-bugmail at puremagic.com d-bugmail at puremagic.com
Wed Nov 30 16:58:11 PST 2011


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


Jonathan M Davis <jmdavisProg at gmx.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jmdavisProg at gmx.com


--- Comment #6 from Jonathan M Davis <jmdavisProg at gmx.com> 2011-11-30 16:57:07 PST ---
They're Errors, not Exceptions, so they are _not_ expected to be recoverable.
The fact that they are exceptions allows you to get more meaningful data on
failures (e.g. stack traces), and you _can_ technically recover from them in
very controlled circumstances but _only_ in very controlled circumstances where
you really know what you're doing and you're very careful to make sure that
it's actually safe to do the recovery. In the general case, they are _not_
expected to be recoverable and so are not treated that way. Once an Error is
thrown, the program is in an undefined state, so it's questionable that you
even _can_ recover except in very controlled circumstances.

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