[plt-scheme] Force finalization right before program exit?

From: Matthew Flatt (mflatt at cs.utah.edu)
Date: Thu Oct 6 12:04:14 EDT 2005

At Wed, 05 Oct 2005 15:52:07 -0600, Kevin Tew wrote:
> Is it possible to force garbage collection and finalization as a scheme
> program is exiting?

Not through garbage collection, because the collector generally isn't
precise enough.

Probably the object should be registered with a custodian, and then you
can explicitly shut down the custodian on exit.

Matthew



Posted on the users mailing list.