From: Guillaume Cottenceau Date: 2005-04-13T16:34:26+09:00 Subject: Re: ability to run finalizers at a given point of a program? > > Do you know when the last "extraction" has been done (making it safe for > > your finalizer to run)? Can you use that knowledge to explicitly run the > > finalization method, instead of waiting for the GC? > > That's the exact right question. Because if one can invoke GC manually, > then one can as well invoke some cleanup method. Nothing really gained. It's far from being as elegant as real destructors, but it's still better because invoking the GC manually can be done at a single point of a program (for example, when a server-oriented request is finished) whereas invoking cleanup method is needed to each objet at each different location of the program where you know you need to. -- Guillaume Cottenceau - http://zarb.org/~gc/