Re: FFI supports callbacks

2010-09-05 Thread Jose A. Ortega Ruiz
On Sun, Sep 05 2010, Ludovic Courtès wrote: > Hi there! > > l...@gnu.org (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 a

Re: FFI supports callbacks

2010-09-05 Thread Ludovic Courtès
Hi there! l...@gnu.org (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-fo

‘match’ and “k or more” patterns

2010-09-05 Thread Ludovic Courtès
Hello Alex, GNU Guile 1.9 now uses your implementation of ‘match’ as a nice replacement for Wright’s implementation, so thank you! I stumbled upon this incompatibility: Wright’s ‘match’ supports ‘..1’, ‘..2’, etc., which mean “1 or more”, “2 or more”, etc., and the associated variable (when there

Re: program-module returns a non-module

2010-09-05 Thread Ludovic Courtès
Hello, "Jose A. Ortega Ruiz" writes: > When called on a program (procedure object) implemented in C, > program-module returns something that is not a module: > > (define cp (module-ref (current-module) 'cons)) > > (program? cp) => #t > (program-module cp) => # > (module? (program-module