[Ecls-list] How to hook into the CLOS object destruction process initiated by the garbage collector?

Dietrich Bollmann dietrich at formgames.org
Thu Jun 13 01:30:33 UTC 2013


Hi,

CLOS relies on a garbage collector to destruct objects which are not
referenced anymore, so no explicit destructor method is foreseen.

However, when wrapping a C++ class into a CLOS class, the destructor of the
C++ object has to be called when the CLOS object is garbage collected to
free the foreign object.

Is there a way to hook into the CLOS object destruction process initiated
by the garbage collector in order to call the C++ destructor when the CLOS
object is garbage collected?

Thanks,

Dietrich
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20130613/26250eba/attachment.html>


More information about the ecl-devel mailing list