On Mon, 19 Dec 2005 16:20:19 +0100, "Hoehle, Joerg-Cyril" Joerg-Cyril.Hoehle@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?