lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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?