[DISCUSSION] Is Squeak/Smalltalk able to do this?

Anthony Hannan ajh18 at cornell.edu
Mon Feb 10 16:48:39 UTC 2003

Stephane Ducasse <ducasse at iam.unibe.ch> wrote:
> What I would really like to 
> have in squeak is a primitive to execute a method 
> (CompiledMethod>>value:withReceiver: in VW).

The closure compiler adds this primitive (of course you need to
regenerate your VM).  Its called Object>>withArgs:executeMethod:.  I
prefer this order of receiver and args so
BlockClosure>>valueWithArguments: can call it quickly in the VM just by
adding its method on top of the stack.


More information about the Squeak-dev mailing list