On Fri, Jun 20, 2008 at 5:21 AM, Hans Hübner <[EMAIL PROTECTED]> wrote:
> is there a good reason why WITH-FOREIGN-STRING allocates the buffer on
> the heap instead of using WITH-FOREIGN-OBJECT, which will allocate on
> the stack on platforms that support it?

I believe we were worried about big strings and the possibility of
overflowing the stack. I suppose we could add an argument to
WITH-FOREIGN-STRING and :STRING to force stack allocation.

-- 
Luís Oliveira
http://student.dei.uc.pt/~lmoliv/
_______________________________________________
cffi-devel mailing list
cffi-devel@common-lisp.net
http://common-lisp.net/cgi-bin/mailman/listinfo/cffi-devel

Reply via email to