[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Object binding system vs LUA_REGISTRYINDEX
- From: "Ken Smith" <kgsmith@...>
- Date: Tue, 17 Apr 2007 14:51:18 -0700
On 4/17/07, Brian Weed <bw@imaginengine.com> wrote:
I've recently added code to store the Lua table that
represents my C++ object
You are going through quite a few hoops to get garbage collection for
your Lua table. Perhaps it would be more straightforward to represent
your C++ object as a Lua userdatum instead. The garbage collector
will naturally collect your userdatum when it goes out of scope.
Ken