Re: boolean types?
Kevin Rosenberg <kevin-HJRc7zDS/[email protected]> Fri, 3 Dec 2004 16:45:19 -0700
| Newsgroups | gmane.lisp.uffi.devel |
|---|---|
| Message-ID | <[email protected]> |
> Am I right that UFFI does not support booleans, or did I miss something? You are correct. > I am getting ready to start hacking a :boolean type into UFFI. I > received the source of a package developed in CLisp which makes heavy > use of CLisp converting between nil/t and 0/1. I want to port that to > UFFI so it can run under other Lisps. I think the easiest way to go is > to extend UFFI to pass booleans thru to AllegroCL and Lispworks and > anyone else that supports booleans. I don't see that Allegro (ftype.htm) supports boolean types. I don't recall seeing other UFFI supported platforms supporting boolean types either. Most of the FFI's are at the C level and a boolean type is not a concept in C. That said, something like this could be grafted on to UFFI with get-slot-value to do automated translation, but I personally don't have a need for such functionality. Kevin Kevin