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 <> 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?

> 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.