[cffi-devel] Re: unnamed callback (closures?)

James Bielman jamesjb at jamesjb.com
Sun Feb 5 22:14:59 UTC 2006


Jan Rychter <jan at rychter.com> writes:

>>>>>> "Luís" == Luís Oliveira <luismbo at gmail.com> writes:
>  Luís> I'm pretty sure we could support anonymous callbacks, on SBCL and
>  Luís> CLISP anyway. Do any other Lisps support this?

> So, perhaps it is worth implementing as an optional feature. Hopefully
> other implementations will follow suit.

I took a shot at implementing this on SBCL and CLISP (I don't have a
working ECL installation), here's the patch:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: callback-lambda.patch
Type: text/x-patch
Size: 3003 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cffi-devel/attachments/20060205/7c43a1ad/attachment.bin>
-------------- next part --------------

This still needs unit tests but cursory testing from the REPL looks
good---please give it a try.

James


More information about the cffi-devel mailing list