lua-users home
lua-l archive

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


> However, the "or put it into the registry" part seems to me to indicate
> that Lua doesn't reserve the right to use a moving memory manager.

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.

Of course, currently Lua does not use a moving GC and this is not in
our plans at all, so that warning is kind of overprecaution.

-- Roberto