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()
}