[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: userdata with automatic uservalue?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Thu, 16 Jun 2016 10:17:31 -0300
> 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).