lua-users home
lua-l archive

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


on 12/4/05 8:35 PM, Chris Marrin at chris@marrin.com wrote:

> This is very similar to what I have tried with luaL_ref(), except that
> you are using a lightuserdata rather than an integer. The nice thing
> about using luaL_ref() is that it works for non-constant strings.

The reason I use a light userdata is that I frequently have multiple Lua
universes open and the Lua ref mechanism might assign different id's in each
universe. By using a light userdata, I get to assign the id.

Mark