Re: errors and their keywords and where catch can return toand st uff like that

[email protected] (Tony Olekshy) Mon, 14 Aug 2000 20:57:14 -0600
Newsgroups perl.perl6.language.flow
Organization Avra Software Lab Inc.
Message-ID <[email protected]>
Chaim Frenkel wrote:
> 
> The throw for whatever reason from c2 should end up in c1.
> 
>     try {               #       t1
> 
>         try {           #       t2
>                 # something thrown
>         }
>         catch {         #       c2
>                 # something unexpected thown
>                 }
>     }
>     catch {             #       c1
>         # should end up here from c2
>     }

t1 is invoked.
t2 is invoked.
c2 is invoked if t2 throws.
c1 is invoked if t2 throws and c2 throws.

The statement unwinds only if t2, c2, and c1 all throw. Otherwise
normal execution continues because either t2 didn't throw, or it
did but was caught by c2 without throwing, or it did and c2 threw
too but that was caught by c1 without throwing.

> What am I missing.

Multiple conditional catch clauses.

Yours, &c, Tony Olekshy