On Sat, Aug 27, 2011 at 7:39 PM, Liam Healy <
lhealy@common-lisp.net> wrote:
>> What kind of translation do you need these methods to do on
>> FOREIGN-STRUCT-TYPE?
>>
> They should take the lisp object, allocate the foreign structure, then
> define the slots correctly (recursively if necessary), and return the
> pointer. For the return pointer, they should read the contents and generate
> the lisp equivalent. I suppose the calls to libffi functions should invoke
> translate-*-foreign just like it now invokes the functions on the properties
> fsbv::foreign-object-components and fsbv::setf-foreign-object-components.
That seems to fit the translation-*-foreign pretty well. Moreover, it