Workspace-like bindings

Stéphane Rollandin lecteur at zogotounga.net
Fri May 26 14:43:58 UTC 2006


answering to myself... I eventually found out that

	Compiler evaluate: aString
		for: anObject notifying: anObject logged: false

does what I want provided that anObject class implements #bindingOf: 
plus a dummy method #text returning ' ' and a dummy #selectionInterval 
returning (1 to: 1).

this is because methods #temporariesIn: and #removeUnusedTemps in Parser 
require the requestor to handle those messages. this could be changed 
IMHO, so that simply providing bindingOf: does the job.

should I report this in Mantis, or did I miss something ?


Stef

> I am trying with no luck so far to implement object-specific bindings 
> such as workspace ones.
> 
> I would like something like
> 
>     Compiler evaluate in: anObject
> 
> to take into account local bindings in anObject, as returned (I guess) 
> from anObject>> #bindingOf:
> 
> 
> any idea ?
> 
> 
> Stef
> 
> 
> 
> 
> 




More information about the Squeak-dev mailing list