lua-users home
lua-l archive

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


On Sat, Dec 24, 2011 at 7:37 PM, Doug Currie <doug.currie@gmail.com> wrote:
On Dec 24, 2011, at 10:10 PM, Josh Haberman wrote:
> What's the Lua 5.2 way of letting a userdata contain references to other Lua values?

From http://www.lua.org/manual/5.2/manual.html#8.1
>
> To manipulate the "environment" of a userdata (which is now called user value), use the new functions lua_getuservalue and lua_setuservalue.

Perfect, thank you.

Josh