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