lua-users home
lua-l archive

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

Ah, thanks!  Don't know why I didn't think of that.  To be honest I
guess I have never seen the output of tostring on a table or function.
Yes it looks like tostring does (hopefully) return what I was looking


On 12/8/06, Jerome Vuarand <> wrote:
I think you can use tostring to get a unique string identifier to any
Lua value. You can also put a reference to the values you're interested
in in the registry, which is unique per Lua master state (use luaL_ref
and luaL_unref with LUA_REGISTRYINDEX as second parameter).