Dec. 14, 2011
7:53 a.m.
On Dec 14, 2011, at 2:34 AM, Igor Stasenko wrote:
Stephane, remember we changed a name lookup for classes not long ago. IIRC we changed the #bindingOf: So, i think that #sharedPools should answer a list of all pools of all classes in inheritance chain, which can be implemented like:
sharedPools
^ superclass ifNil: [ self localSharedPools ] ifNotNil: [ self localSharedPools , superclass sharedPools ]
note, that order (self localSharedPools , superclass sharedPools) are important, because pool in a subclass can shadow a pool variable defined in superclass.
Exactly :) This is what usesVarPoolNamed: is doing. Stef
-- Best regards, Igor Stasenko.