[cffi-devel] Re: [fetter-devel] Quick CFFI update

C Y smustudent1 at yahoo.com
Tue Jul 5 18:35:10 UTC 2005


--- Kenny Tilton <ktilton at nyc.rr.com> wrote:

> Lilac got beat out by Fetter, which will be doing the autogen thing.

So Fetter is not just C++?  Whoops - time to re-read the project
profile.
 
> Fetter will generate a Lisp source file of bindings, so you can just 
> peruse that to see how the Lisp turned out. But, yes, in the end the 
> documentation of the C library will be what you need. What gets 
> interesting is how things like booleans are handled. The C
> zero/non-zero becomes the Lisp nil/non-nil and vice versa. What 
> will likely happen is that the FFI will generate two entry points, 
> one without auto-conversion of booleans and strings, etc, and one 
> with. So anyone using these tools to get to C/C++ libraries will 
> need to read a little doc to get up to speed on that.

Hmm.  OK.  I take it then that in some cases auto-conversion is
undesirable?

> I for one did think of that, but I am not sure how well Albert
> (whatever that is) output would meld with gccxml output. This 
> might be an exercise for another day.

Right.  (Just for reference, Albert is a documentation generation
program written for lisp - home page is http://albert.sf.net)

Cheers,
CY


		
____________________________________________________ 
Yahoo! Sports 
Rekindle the Rivalries. Sign up for Fantasy Football 
http://football.fantasysports.yahoo.com



More information about the fetter-devel mailing list