From: Jim Weirich Date: 2002-02-24T12:45:44+09:00 Subject: Re: Object/Memory Management >>>>> "Sean" == Sean O'Dell writes: Sean> I will have to look again at the finalizing features...I Sean> didn't know there was a way to set a finalizer to run Sean> *before* the object was destroyed. Maybe my book is Sean> outdated already? No, it's correct. The finalizer is still run after the "object" is gone. However, we have cleverly arranged that all the information we need for finalization (a reference to our SillyResource) is captured in the finalization closure. -- -- Jim Weirich jweirich@one.net http://w3.one.net/~jweirich --------------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)