Conclusions of the exception discussion
Jonathan M Davis
jmdavisProg at gmx.com
Sun Feb 26 03:43:40 PST 2012
On Sunday, February 26, 2012 12:24:09 Kagamin wrote:
> On Saturday, 25 February 2012 at 23:32:24 UTC, Jonathan M Davis
> > which resets the stack trace.
> This is the issue, you're trying to address with these proposals?
It's _an_ issue, not the only issue. The bigger issue there is that you're
forced to duplicate catch blocks when you want to catch several disparate
exceptions and handle them identically (either that, or you're forced to catch
their base type and examine their actual types individually). The stack trace
part may even end up being fixed by changing the rethrowing behavior. It's just
one of the things that would be affected by making it possible to catch
disparate exceptions with the same catch block. It's not the primary thing.
As for the exception hierarchy or Variant[string] stuff, that has _nothing_ to
do with resetting the stack trace. They solve completely different issues.
- Jonathan M Davis
More information about the Digitalmars-d