1. The Finalize Bigloo Library -- Using the Library

To use the library, be sure to include the statement

(library finalize)
in the module clause of the module in which you want to use the finalize library. (You may also have to tell Bigloo the location of the finalize library using the -L compiler option.)

When you want to register a finalizer for an object, use

(register-finalizer! finalizer::proc obj)
Remember that finalizer must be a procedure of one argument which will be applied to obj just before obj is garbage collected. I have no idea what would happen if you registered more than one finalizer per object; this depends on the action of the GC library.


This Html page has been produced by Skribe.
Last update Tue Sep 20 23:07:05 2005.