[Cffi-devel] Callbacks & Lambdas

FAU fau at riseup.net
Wed Nov 5 07:53:53 UTC 2014


Hello,

I'm kinda new to CFFI.

Is there a reliable/portable way to have lambdas called as a callback
from a foreign C function?  I assume there's not though.

I could imagine it could be simulated (by a dispatcher callback or
something) so I'm wondering if somebody has done something like that
before and may share insight into her/his design.

Thanks,
Frank







More information about the cffi-devel mailing list