portable finalizer



Hi,

I am wrapping a void * cffi pointer and some extra information in a
CLOS object. When the object is garbage-collected, I would like to
have the memory location freed. I have found out how to do
finalization in SBCL, but I want to make my code portable.

I have seen finalize implementations with #+ directives floating
around, could somebody post a reasonably comprehensive version? Or is
there a library to do this?

Thanks,

Tamas
.



Relevant Pages

  • Re: portable finalizer
    ... I am wrapping a void * cffi pointer and some extra information in a ... CLOS object. ... I have seen finalize implementations with #+ directives floating ...
    (comp.lang.lisp)
  • Re: portable finalizer
    ... Tamas Papp writes: ... CLOS object. ... finalization in SBCL, but I want to make my code portable. ... I have seen finalize implementations with #+ directives floating ...
    (comp.lang.lisp)