[Gardeners] python-on-lisp needs help
Luís Oliveira
luismbo at gmail.com
Mon Jun 12 18:24:45 CDT 2006
Marco Gidde <marco.gidde at tiscali.de>
writes:
> I just made a quick test with SBCL 0.9.12 on x86-64 and had to change
> one line in pygetarg from
>
> (string (cffi:foreign-string-to-lisp (cffi:mem-ref variable :string)))
>
> to
>
> (string (cffi:mem-ref variable :string))
>
> Someone else posted that everything worked fine for him with a very
> similar configuration, so I *guess*, that it might be a change between
> different CFFI versions. I ASDF-INSTALLed it a few weeks ago and it is
> version 0.9.1. Maybe cvs CFFI is different in this regard?
Many (?) months ago, way before 0.9.0 (the first actual release of
CFFI), the behaviour of MEM-REF (and others) changed so that the type
translators are called (in this case, the :STRING type translator). So,
MEM-REF will call FOREIGN-STRING-TO-LISP for you.
--
Luís Oliveira
luismbo (@) gmail (.) com
http://student.dei.uc.pt/~lmoliv/
More information about the Gardeners
mailing list