|
Boost : |
From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-11-04 06:19:24
From: "Beman Dawes" <bdawes_at_[hidden]>
> At 12:48 AM 11/3/2002, Kevin S. Van Horn wrote:
>
> >Throwing an exception, on the other hand, causes the stack to be
unwound,
>
> >thus throwing away all of that information. When debugging, throwing an
> >exception on a logical (programmer) error is the last thing in the world
> I
> >want to happen.
>
> Surely your debugger allows you to trap the exception at the point it is
> thrown, so that the stack (and everything else) at that point is available
> for inspection? Isn't that equivalent to getting a core dump, yet
> preserves the benefits of exceptions in non-debugging environments?
No, because beta testers typically don't run your program under a debugger.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk