[Larceny-users] ERR5RS FFI

Ray Racine ray.racine at comcast.net
Thu Nov 22 17:11:15 EST 2007


Is there a technique to use Larceny's FFI with ERR5RS?

>From the HOWTO-ERR5RS I can lift/drop(?) an ffi primitive proc into a
library,e.g,

(library 
  (foo bar)
  (import (primitives load-ffi %get-int ...)
  ...)

but I'm don't see how I import in the FFI syntax transformers such as 
define-c-info.  In other words (import (primitives define-c-info) ) does
not work.  

I don't see an easy out other then defining a full blown 

(library 
  (larceny ffi)
   ...)

and porting the syntax transformers such as define-c-info transforms to
syntax-case/rules.


Thanks and Happy Thanksgiving.

Ray




More information about the Larceny-users mailing list