Exception handling question

Anthony Hannan ajh18 at cornell.edu
Tue Apr 29 17:24:33 UTC 2003


ContextCleanupPlus-ajh fixes this.  Get if from
http://minnow.cc.gatech.edu/squeak/ClosureCompiler (also registered on
SqueakMap).

Cheers,
Anthony

Chris Muller <afunkyobject at yahoo.com> wrote:
> When I run the following in a workspace, I expect to see:
> 
> passing
> progress notification
> resumed
> 
> in the Transcript.  Instead, I see:
> 
> passing
> resumed
> 
> Here's the code:
> 
> [ [ ProgressNotification signal: 'test'.  Transcript cr; show: 'resumed'. ]
> 	on: Notification 
> 	do: 
> 		[ : n1 | n1 isNested ifTrue: [ Transcript cr; show: 'passing'. n1 pass ].
> 		Transcript cr; show: 'general notification'. 
> 		n1 resume ] ]
> 
> 	on: ProgressNotification 
> 	do: [ : n2 | Transcript cr; show: 'progress notification'. n2 resume ]
> 
> I expected the "n1 pass" to cause it to run the code in the outer handler, but
> it appears it may instead just be running its defaultAction.
> 
> Is this correct?
> 
> Thanks,
>   Chris
> 
> __________________________________
> Do you Yahoo!?
> The New Yahoo! Search - Faster. Easier. Bingo.
> http://search.yahoo.com



More information about the Squeak-dev mailing list