[cffi-devel] Re: cffi-manual - continuation2

Luís Oliveira luismbo at gmail.com
Fri Dec 30 21:55:19 UTC 2005


On 2005-dec-30, at 13:08, Yaroslav Kavenchuk wrote:
> CFFI[59]> (foreign-type-size 'foo)
> 16
> ;; in example - 12

Well.. it /could/ be 12. :-)


> CFFI[74]> (foreign-alloc :int :initial-contents #(1 2 3))
> #<FOREIGN-ADDRESS #x012D5578>
> CFFI[75]> (loop for i from 0 below 3
>               collect (mem-ref * :int i))
> (1 33554432 131072)

Oops, another typo. Fixed. Thanks.

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
Equipa Portuguesa do Translation Project
http://www.iro.umontreal.ca/translation/registry.cgi?team=pt




More information about the cffi-devel mailing list