semantics of Exception>>outer ?

Anthony Hannan ajhannan at yahoo.com
Sat Jun 28 04:10:49 UTC 2003


I have updated #outer in the latest version of ContextCleanup-ajh (see my
previous post) according to the following semantics.

Anthony Hannan <ajhannan at yahoo.com> wrote:
> John Brant <brant at refactory.com> wrote:
> > Here's the definition of #outer from the ANSI standard:
> > ------------------------
> > If the handler environment for the current exception handler contains an
> > exception handler that will handle the receiver, evaluate that handler's
> > exception action with the receiver as the argument to its handler block. If
> > there is no enclosing handler, send the message #defaultAction to the
> > receiver. The #defaultAction method is evaluated using the current
exception
> > environment.
> > 
> > If the receiver is resumable and the evaluated exception action resumes
then
> > the result returned from #outer will be the resumption value of the
> > evaluated exception action. If the receiver is not resumable or if the
> > exception action does not resume then this message will not return.
> > 
> > For exceptions that are not resumable, #outer is equivalent to #pass.
> > ------------------------
> 
> So if the outer handler executes "ex resume: value", value is returned as the
> result of #outer instead of #signal.  Likewise, if there is no outer handler
> and defaultAction resumes it returns as the result of #outer instead of
> #signal.


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com



More information about the Squeak-dev mailing list