[Openmcl-devel] nonglobal ffi callbacks?
ron at flownet.com
Thu Aug 13 10:49:39 EDT 2009
(defvar *callback* nil)
(define-callback callback ... (funcall *callback* ...))
(let ((*callback* ...) ...)
On Aug 12, 2009, at 10:01 PM, Michael Kohout wrote:
> Hi all-
> I've got a problem that is screaming out for scoped ffi
> callbacks(it's for a plugin system I'm developing for a web app).
> In my gleaning of the docs, I concluded ccl doesn't appear to
> support this out of the box. Is this in fact the case? If not, is
> there any way I can ape it? I don't care if it's portable code.
> Ideally, what I'd like to end with is something I can wrap in a let:
> (let ((somecallback (define-callback ....)))
> ;;set up, run, and clean up plugin interpreter(lua and
> );;gc the callback
> Thanks for any suggestions.
> Mike Kohout
> Openmcl-devel mailing list
> Openmcl-devel at clozure.com
More information about the Openmcl-devel