[ENH][GOODIE] Easy finalization ( [cd][er][sm] )

ned at bike-nomad.com ned at bike-nomad.com
Thu Jun 5 15:39:23 UTC 2003


This little goodie/enhancement makes it easier to provide on-the-fly
finalizers.

By providing a global default registry (WeakRegistry default), and
giving you a simple way to tie finalization to a MessageSend (actually
an ObjectFinalizer), this takes the headaches out of simple
finalization.

So rather than having to make your own registry on (perhaps) a per-class
basis, you can just call finalization on a per-object basis.

I like it!

Needs SUnit tests, though. Anyone up for writing them?









< Brought to you by the BugFixArchiveViewer and CommentNotePad >



More information about the Squeak-dev mailing list