[cffi-devel] cffi-libffi funcall path and :string

Luís Oliveira luismbo at gmail.com
Sun May 27 20:48:21 UTC 2012


On Sun, May 27, 2012 at 9:15 PM, Luís Oliveira <luismbo at gmail.com> wrote:
> Did you notice the function lisp-string-to-foreign? Seems like a
> cleaner way to implement translate-into-foreign-memory.

More importantly, how can you be translating a string without
performing allocation in this case? Also, in general,
translate-into-foreign-memory for strings should definitely refuse to
accept string types without an explicit size. (Which is not
implemented yet, IIRC.)

In any case, why does Ryan's example need translate-into-foreign-memory?

-- 
Luís Oliveira
http://r42.eu/~luis/




More information about the cffi-devel mailing list