Now that's a bug. Let me see what I can do about it :)<br>
<br>
As for verrazano-support, it's a small library that bindings use to
access to C++ virtual table lookups and virtual function calls. You can
check it out as the verrazano-support module in CVS. Just stick it in
/usr/lib/sbcl where asdf can find it.<br><br><div><span class="gmail_quote">On 9/2/05, <b class="gmail_sendername">Carlos Ungil</b> <<a href="mailto:ungil@mac.com">ungil@mac.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hello,<br><br>thanks for your reply.<br><br>I tried to simplify the report, but I did simplify it too much :-)<br><br>In fact the error appears when I use the array in a structure:<br><br>-----[array.h]-----<br>typedef char char_array[10];
<br><br>typedef struct two_char_arrays<br>{<br> char_array first;<br> char_array second;<br>} two_char_arrays;<br>----------<br><br>(cffi:define-foreign-type char-array () 'anonymous4713)<br> > CHAR-ARRAY<br>(cffi:defcstruct two-char-arrays-1 (first char-array) (second
<br>char-array))<br> > Unknown CFFI type: ANONYMOUS4713.<br><br>By the way, I'm ignoring the (asdf:operate 'asdf:load-op<br>'verrazano-support) line.<br>I cannot find other references to "verrazano-support" anywhere. What's
<br>it supossed to do?<br><br>Regards,<br><br>Carlos<br><br>On Sep 2, 2005, at 12:39 PM, Rayiner Hashem wrote:<br><br>> Not a bug, just an artifact of the fact that C-FFI doesn't have an<br>> array type, but Verrazano does. The C-FFI backend lowers arrays to
<br>> bare pointers, so the code should still work.<br>><br>> On the other hand, your comment made me realize quite a significant<br>> oversight with regards to arrays as arguments to virtual functions or<br>
> members of arrays. I'll fix those shortly. Thanks!<br>><br>> Sincerely,<br>> Rayiner Hashem<br>><br>> On 9/2/05, Carlos Ungil <<a href="mailto:ungil@mac.com">ungil@mac.com</a>> wrote:<br>>>
<br>>> I don't know if you're aware of this problem, I'm reporting it just in<br>>> case.<br>>><br>>> From files<br>>><br>>> -----[array.binding]-----<br>>> (defbinding "array-library"
<br>>> (nicknames "array")<br>>> (include "array.h"))<br>>> ----------<br>>><br>>> and<br>>><br>>> -----[array.h]-----<br>>> typedef char char_array[10];
<br>>> ----------<br>>><br>>> (verrazano:create-binding "array.binding" "array-library.lisp"<br>>> :cffi-backend t)<br>>> produces the following output:<br>>><br>>> -----[
array-library.lisp]-----<br>>> (defpackage "ARRAY-LIBRARY" (:use #:COMMON-LISP #:CFFI) (:nicknames<br>>> "ARRAY")<br>>> (:export))<br>>><br>>> (asdf:operate 'asdf:load-op 'verrazano-support)
<br>>> (cffi:define-foreign-type char-array () 'anonymous12)<br>>> (progn)<br>>> ----------<br>>><br>>> Anonymous12 is not defined anywhere; is this a bug or am I missing<br>>> something?
<br>>><br>>> Cheers,<br>>><br>>> Carlos<br>>><br>>> _______________________________________________<br>>> fetter-devel mailing list<br>>> <a href="mailto:fetter-devel@common-lisp.net">
fetter-devel@common-lisp.net</a><br>>> <a href="http://common-lisp.net/cgi-bin/mailman/listinfo/fetter-devel">http://common-lisp.net/cgi-bin/mailman/listinfo/fetter-devel</a><br><br></blockquote></div><br>