Block closures

Lex Spoon lex at cc.gatech.edu
Thu Jul 27 09:57:53 UTC 2000


Don't forget references to variables in a surrounding block.  A single
"home" pointing back to the surrounding method will no longer be
enough....

-Lex


Mats Nygren <nygren at sics.se> wrote:
> Hi,
> 
> I've had a look at the compiler and the VM.
> 
> I can do the block closures. But don't expect to see anything before the
> middle of October as I have other things that has to be done. I have the
> straighforard way of doing it in mind, allocating block contexts. No fancy
> optimizations.
> 
> The semantics I have in mind is as in ANSI Smalltalk, is that what is
> wanted? In particular it will be possible to shadow variables in
> enclosing scopes.
> 
> While at it I will restructure the compiler a little.
> 
> /Mats





More information about the Squeak-dev mailing list