"Hoehle, Joerg-Cyril" Joerg-Cyril.Hoehle@t-systems.com writes:
In CLISP, every closure can be turned into a callback, and this is valuable since it allows to retrieve context information out of the closure. Is cffi's limitation caused by some implementations?
To my knowledge, yes. AFAICT, only SBCL/x86 and CLISP support that.
Regarding the behaviour of CFFI:DEFCALLBACK as a non-toplevel form, not only will it set it globally, the callback itself won't be generated at runtime on most Lisp, IIRC.