[cffi-devel] Can closures be used as callbacks in CFFI?

Bruno Daniel bruno.daniel at gmx.net
Tue Sep 18 11:37:09 UTC 2007


Dear developers,

I apologize for asking this question, since I just found out that it has
already been addressed last year:

http://common-lisp.net/pipermail/cffi-devel/2006-February/000525.html
"Re: unnamed callback (closures?)
[...]
If all else failed, you could resort to passing something like:

#+sbcl (alien-sap (alien-lambda ...))
#+ecl #| whatever is appropriate for an ecl anon callback |#

as a pointer to a CFFI function."

I'm a little bit worried because alien-lambda is undocumented in both the SBCL
and the CMUCL manuals.

Best regards,
  Bruno Daniel



More information about the cffi-devel mailing list