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

[email protected] (Evan Howarth) Mon, 14 Aug 2000 08:13:25 -0700
Newsgroups perl.perl6.language.flow
Message-ID <[email protected]>
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?
That's an interesting idea. Java, C++, and Delphi don't do
that for you. They expect the programmer to either avoid
or correctly handle exceptions in catch and finally blocks.

How does try-catch handle exceptions in catch and finally
blocks. Does it just eat them? For example, are the two 
following samples equivalent?

sub someSubThatDies { die; }
sub anotherSubThatDies { die; }
sub aThirdSubThatDies { die; }

eval {
  someSubThatDies();
}
else {
  eval { anotherSubThatDies() }
}
continue {
  eval { aThirdSubThatDies() }
}

try {
  someSubThatDies();
}
catch {
  anotherSubThatDies()
}
finally {
  aThirdSubThatDies()
}