[GRR] OutOfScopeNotification catching caught me

tim Rowledge tim at rowledge.org
Fri Apr 7 23:33:29 UTC 2006


On 7-Apr-06, at 3:46 PM, nicolas cellier wrote:

> evaluate this silly example from a text editor:
>
> Object compile: 'outOfScopeExample
>     true ifTrue: [| i | i := 1].
>     ^i'.
> ^Object new perform: #outOfScopeExample
Squeak doesn't have proper closures. Your code is compiled exactly like
|i|
true ifTrue:[i:= 1].
^i
The i is not actually out of scope, unlike in VW.


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
'Profanity: the universal programming language'







More information about the Squeak-dev mailing list