[squeak-dev] Re: Silly question: How do I make a cache registry
Marcel Taeumel
marcel.taeumel at student.hpi.uni-potsdam.de
Tue Mar 15 16:20:34 UTC 2011
Hi.
Use this:
WeakArray addWeakDependent: myDict.
There is a process called "WeakArray finalization process" which calls
#finalizeValues on its dependents frequently. For WeakValueDictionary that
would be a removal of the key that got "nil".
Bye,
Marcel
--
View this message in context: http://forum.world.st/Silly-question-How-do-I-make-a-cache-registry-tp3357027p3357049.html
Sent from the Squeak - Dev mailing list archive at Nabble.com.
More information about the Squeak-dev
mailing list
|