[cffi-devel] unnamed callback (closures?)

Martin Simmons martin at lispworks.com
Mon Dec 19 20:02:24 UTC 2005


>>>>> On Mon, 19 Dec 2005 16:20:19 +0100, "Hoehle, Joerg-Cyril" <Joerg-Cyril.Hoehle at t-systems.com> said:

  Jorg> While people certainly appreciate that CFFI provides callbacks (their
  Jorg> current state in UFFI or Kenny Tilton's hello-c fork is unknown to
  Jorg> me), I wonder why they apply to named functions only.

  Jorg> In CLISP, every closure can be turned into a callback, and this is
  Jorg> valuable since it allows to retrieve context information out of the
  Jorg> closure.  Is cffi's limitation caused by some implementations?

What are the garbage collection semantics of these closures?  Presumably the
GC can't move them, but when can they be collected?

-- 
Martin Simmons                              Email: martin at lispworks.com
LispWorks Ltd, St John's Innovation Centre    TEL:   +44 1223 421860
Cowley Road, Cambridge CB4 0WS, England.      FAX:   +44 870 2206189



More information about the cffi-devel mailing list