Re: portable finalizer



Tamas Papp <tkpapp@xxxxxxxxx> writes:

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?

there is a small library out there called trivial-garbage with
finalization code for several CL implementations.


Regards,

Marco
.



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)
  • 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
    ... Marco Gidde wrote: ... CLOS object. ... finalization in SBCL, but I want to make my code portable. ...
    (comp.lang.lisp)
  • Re: portable finalizer
    ... CLOS object. ... finalization in SBCL, but I want to make my code portable. ... Finalization is the wrong tool for this. ... Look in the Lisp concept of ...
    (comp.lang.lisp)