[Cffi-devel] Callbacks & Lambdas

Luís Oliveira luismbo at gmail.com
Wed Nov 12 12:50:41 UTC 2014


On Tue, Nov 11, 2014 at 5:11 PM,  <Joerg-Cyril.Hoehle at t-systems.com> wrote:
> No, reread-the paragraph starting with:
> "You can use FFI:FOREIGN-FREE to free the trampoline associated with a FFI:FOREIGN-FUNCTION object, ..."
>
> The paragraph explains that it's not trivial to grab the exact object corresponding to the trampoline. If you don't grab it, it will leak.

Got it. Well, thanks for your comments! I think we should be able to
do a similar interface using libffi's closure API. It will certainly
have the same gotcha's as CLISP's API and it'll be important to
document them properly.

Cheers,

-- 
Luís Oliveira
http://kerno.org/~luis/




More information about the cffi-devel mailing list