[cffi-devel] array ref in CFFI?

Luis Oliveira luismbo at gmail.com
Wed Sep 7 00:52:50 UTC 2005


On 7/set/2005, at 00:39, Kenny Tilton wrote:
> I am trying to port my code to CFFI, getting nowhere fast.

Uh oh, that's not good.


> The first thing I need to do is translate UFFI deref-array calls. 
> Found it in the cffi uffi compatibility code, then killed a few 
> minutes searching the doc for foreign-aref. Finally occurred to me to 
> check and discovered there is no such thing.
>
> Now the leading candidate is mem-aref. Looks promising, but what is up 
> with that UFFI compatibility code?

mem-aref (formerly named foreign-aref) is what we have so far accessing 
arrays. It's only useful for 1d arrays.

I haven't touched uffi-compat so it's very likely that it's broken atm.

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




More information about the cffi-devel mailing list