lua-users home
lua-l archive

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



On 16 Jun 2016 22:13, "Marc Balmer" <marc@msys.ch> wrote:
>
> Hi
>
> 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?

Why would you ever need a non-union uservalue?
Generally you use metatables for per-type properties, uservalues for per-instance properties.