semantics of Exception>>outer ?
Anthony Hannan
ajhannan at yahoo.com
Fri Jun 27 18:00:52 UTC 2003
Ned Konz <ned at bike-nomad.com> wrote:
> On Friday 27 June 2003 10:27 am, Anthony Hannan wrote:
> > I rewrote ifError: in ContextCleanup-ajh, and fixed #outer to
> > report that it is deprecated because it is the same a #pass. Or is
> > it different? At least the old code is equivalent.
>
> My question remains, substituting #pass for #outer.
> In the 3.6a image, this raises the default exception handler, and does
> not return 'outer' as I expected it to do:
>
> [[ self error: 'xx' ] on: Error do: [ :ex | ex isNested ifTrue: [ ex
> pass ] ifFalse: [ ex return: 'not nested' ]]] on: Error do: [ :ex |
> ex return: 'outer' ]
I forgot to mention that this works correctly with ContextCleanup-ajh.
Cheers,
Anthony
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
More information about the Squeak-dev
mailing list
|