[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: String lifetime (C API)
- From: Javier Guerra <javier@...>
- Date: Tue, 28 Feb 2006 01:17:30 -0500
On Tuesday 28 February 2006 1:09 am, Asko Kauppi wrote:
> It is safe to use the returned string, simply because the garbage
> collector never runs until you return from your C function back to
> Lua. Thus, you can: get a string, pop it, use the pointer.
so what you're saying is that the garbage collector is never called by any Lua
API function, but only by the VM itself? is that guaranteed to be so in
future implementations?
--
Javier
Attachment:
pgpKJjyFu7Wkv.pgp
Description: PGP signature