At 10:02 PM 8/14/00 -0400, Chaim Frenkel wrote:
>I'm missing the problem. The throw for whatever reason from c2 should
>end up in c1. No?
>
>
> try { # t1
>
> try { # t2
> # something thrown
> }
> catch { # c2
> # something unexpected thown
> }
> }
> catch { # c1
> # should end up here from c2
> }
>
>What am I missing.
Nothing. That's exactly how it should work.
> >>>>> "PS" == Peter Scott <[EMAIL PROTECTED]> writes:
>
>PS> At 08:13 AM 8/14/00 -0700, Evan Howarth wrote:
> >> Tony Olekshy wrote:
> >> > Just be sure to arrange to handle exceptions while handling
> >> > exceptions.
> >>
> >> Are you saying that the try-catch proposal automatically
> >> handles exceptions thrown in catch and finally blocks?
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
This is the statement I was thrown off by.
>PS> Well this is debatable, but IMHO an exception thrown in either of those
>PS> blocks should go up to the enclosing try block, if any. If it's not in a
>PS> try block it causes program death. If anyone suggests that
>
>PS> try { .... }
>PS> catch Exception::Foo, Exception::Bar { ... }
>PS> catch { exception thrown here causes it to start going through catch
>PS> blocks again }
>
>PS> then I'm afraid I'm going to have to turn to drink.
and what I meant there was, going through the catch block in the line
above. Fortunately, no-one seems to be suggesting it, so my liver is safe.
--
Peter Scott
Pacific Systems Design Technologies