[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Userdata with methods *and* table access.
- From: Rici Lake <lua@...>
- Date: Mon, 18 Oct 2004 09:35:56 -0500
On 18-Oct-04, at 9:27 AM, Roberto Ierusalimschy wrote:
No. The idea is that you put it into the registry so that you can
retrieve it to the stack whenever you need. The "there is no guarantee
that the pointer returned by lua_tostring will be valid after the
corresponding value is removed from the stack" warning still aplies.
Hmm.. if you ever do that, I will have to rewrite a *lot* of code :)
So you're saying that you may implement a moving garbage collector, but
if so it will guarantee not to move anything which is on the stack?
R.