[self-interest] blocks and closures

James McCartney asynth at io.com
Wed Apr 9 22:53:25 UTC 2003

It depends on the Smalltalk.
A full closure can be returned from a function and still refer to that 
function's variables. Self disallows this, as do some Smalltalks I 
beleive. If you support this feature you can no longer put all your 
local variables on the stack, because references to them may outlive 
the function activation in which they were created.

On Wednesday, April 9, 2003, at 01:28 PM, Steve Dekorte wrote:

> Is there any difference between a Self/Smalltalk block and a LISP
> closure?
> Cheers,
> Steve
--- james mccartney   james at audiosynth.com   <http://www.audiosynth.com>
SuperCollider - a real time synthesis programming language for the 

More information about the Self-interest mailing list