I am trying to port my code to CFFI, getting nowhere fast. 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? -- Kenny Why Lisp? http://lisp.tech.coop/RtL%20Highlight%20Film "I've wrestled with reality for 35 years, Doctor, and I'm happy to state I finally won out over it." Elwood P. Dowd, "Harvey", 1950
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
participants (2)
-
Kenny Tilton
-
Luis Oliveira