[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: nested gettable
- From: "kaishaku13" <kaishaku13@...>
- Date: Sun, 05 May 2002 21:57:12 -0000
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.