destructors, how?

Ned Konz ned at bike-nomad.com
Sun Jul 13 04:35:46 UTC 2003


On Saturday 12 July 2003 09:05 pm, Joel Shellman wrote:
> There is a way in Java to use WeakReference and ReferenceQueue to
> detect connection leaks and such and recover from them. Does
> Smalltalk have a similar mechanism?

Yes, we have a number of weak collection classes. For instance, we 
have dictionaries in which either the key or the value is weak. The 
remaining value or key can be used to identify (or clean up after) 
the object that just got GC'd.

-- 
Ned Konz
http://bike-nomad.com
GPG key ID: BEEA7EFE



More information about the Squeak-dev mailing list