MOO-cows Mailing List Archive

[Prev][Next][Index][Thread]

Re: reraise and other error-handling



--- "Adams, Charles" wrote:
I also noticed that a try..except..finally..endtry construct does not 
compile.  It seems you can't mix the two kinds -- a "finally" statement 
can't be seen in a construct when "except" statements are also present.  Was 
this omission accidental or deliberate?
--- end of quoted material ---

Pavel said earlier this year that it was deliberate to avoid confusions of
precedence.  i.e. is the finally used if the error is caught by an except.  He
decided that

try
   try
     blah
   except (E_BUG)
     blah
   endtry
finally
   blah
endtry

would be good enough.

-manta	



Home | Subject Index | Thread Index