On Sun, May 27, 2012 at 9:15 PM, Luís Oliveira <luis...@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/

_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://lists.common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel

Reply via email to