lua-users home
lua-l archive

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

> Is it possible that a userdata value that I create in C using
> lua_newuserdata() suddenly has a uservalue associated with it, i.e.
> without lua_setuservalue() being called from my code?

The only way to change the uservalue of a userdata is through an
explicit call to lua_setuservalue (in C) or debug.setuservalue (in Lua).

-- Roberto