Re: How to define callback functions

Edi Weitz <[email protected]> Thu, 12 Feb 2004 14:02:34 +0100
Newsgroups gmane.lisp.uffi.general
Message-ID <[email protected]>
On Thu, 12 Feb 2004 12:44:01 +0100, Andreas Hinze <[email protected]> wrote:

> Is there a special reason for this or is it simple not implemented ?
> I know LispWorks can do it and IIRC CMUCL, too. I would assume that
> it is doable for all CL's that UFFI adresses. Is this right ?

The current release version of CMUCL supports callbacks only in a
rather complicated form, see

  <http://www.cons.org/cmucl/doc/tcl-callback.html>.

I think Thomas F. Burdick is working on making this easier. Probably
the same holds for SBCL. LispWorks and AllegroCL both offer support
for callbacks but they're very different.

IIRC these were the reasons that Kevin didn't add callbacks to UFFI
yet. You may find more info if you search the mailing list archives.

I'm sure patches are welcome as long as they comply with the design
priorities[1], in particular with:

  "Take advantage of implementation-specific optimizations. Ideally,
   there will not a situation where an implementation-specific FFI
   will be chosen due to lack of optimizations in UFFI."

Cheers,
Edi.

[1] <http://uffi.b9.com/manual/design.html#id2887808>