[ANN] Process-Specific Variables

Andreas Raab andreas.raab at gmx.de
Tue Mar 13 22:46:09 UTC 2007


Giovanni Corriga wrote:
> Il giorno mar, 13/03/2007 alle 12.33 -0700, Andreas Raab ha scritto:
>> 	MyGlobalVar value. "retrieve its value"
>> 	MyGlobalVar value: aValue. "set the value"
> 
> Isn't this similar to what DynamicBindings does?

Good question, I don't know (anyone knowing DynamicBindings care to 
compare the approaches?) I've looked at the code in the meantime and it 
does exactly what I thought it would ;-) though there was one thing that 
surprised me: ProcessSpecificVariable caches the computed hash value, 
which I assume it does for performance reasons. The reason this 
surprises me is that I would not have expected this to have a 
significant performance impact, maybe that's just a left-over?

But anyway, the idea is pretty cool, and I'm sure I can find uses for 
it. If someone could compare/contrast with DynamicBindings this would be 
greatly appreciated, too.

Cheers,
   - Andreas



More information about the Squeak-dev mailing list