lua-users home
lua-l archive

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


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