[QUESTION?] Scope (visibility) of variables declared in block s?

Mike Shields Mike_Shields at gscmobilesolutions.com
Mon Feb 26 15:19:47 UTC 2001


> mumble
> 
> 	self do: [ :i | ].
> 	i inspect
> 
> results in
> 
> mumble
> 
> 	self do: [ :i | ].
> 	 out of scope ->i inspect
> 

But... Isn't the latter case "correct"? I can't imagine being able to use
the first case shown.... It's certainly nonstandard, as far as other
Smalltalk implementations are concerned, right?

Maybe I'm missing something here?





More information about the Squeak-dev mailing list