[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FFI supports callbacks
From: |
Ludovic Courtès |
Subject: |
Re: FFI supports callbacks |
Date: |
Sun, 05 Sep 2010 17:10:34 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hi there!
address@hidden (Ludovic Courtès) writes:
> BTW, while we’re at it, how about make-foreign-function => pointer->procedure?
We briefly discussed this on IRC. One issue with the
‘pointer->procedure’ name is that ‘->’ procedures are most of the time
one-argument procedures, whereas ‘make-foreign-function’ has 3 mandatory
arguments.
However, it occurred to me that what confuses me most about
‘make-foreign-function’ is that it actually makes a Scheme procedure out
of a foreign function.
Conversely, ‘procedure->pointer’ really makes a foreign function out of
a Scheme procedure.
In addition, I like the idea of having names that show the symmetry of
these two procedures.
So, what do you think? :-)
(I’m also open to different names that aren’t confusing and show the
symmetry.)
Thanks,
Ludo’.
- FFI supports callbacks, Ludovic Courtès, 2010/09/03
- Re: FFI supports callbacks, Andy Wingo, 2010/09/03
- Re: FFI supports callbacks, Ludovic Courtès, 2010/09/03
- Re: FFI supports callbacks,
Ludovic Courtès <=
- Re: FFI supports callbacks, Jose A. Ortega Ruiz, 2010/09/05
- Re: FFI supports callbacks, Ludovic Courtès, 2010/09/06
- Re: FFI supports callbacks, Andy Wingo, 2010/09/06
- Re: FFI supports callbacks, Jose A. Ortega Ruiz, 2010/09/06
- Re: FFI supports callbacks, Tristan Colgate, 2010/09/07
- Re: FFI supports callbacks, Ludovic Courtès, 2010/09/07
- Re: FFI supports callbacks, Andy Wingo, 2010/09/07
- Re: FFI supports callbacks, Andy Wingo, 2010/09/06
- Re: FFI supports callbacks, Ludovic Courtès, 2010/09/08