lua-users home
lua-l archive

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


I guess I figured it out, I needed to use weaktable to do
things exactly as I had planned. I didn't think I'd need
nearly every feature of 4.1w4 in my first implementation.

Lua was free'ing memory not allocated for the nested userdata

--- In lua-l@y..., "kaishaku13" <kaishaku13@h...> wrote:
> Currently, I can do this :
> 
> userdata1.userdata2 = newUserdata2(args)
> 
> I have userdata2 setup in userdata1's gettable,
> but it is also its own userdata/metatable type.

[snip]