lua-users home
lua-l archive

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


Let me add some more information.  Classes A and B are bound with the tolua++ binding library, and are dealt with as userdata.

On Mon, Sep 22, 2008 at 2:09 PM, Lucas Hermann Negri <kkndrox@gmail.com> wrote:
Create a new table for every instance.

function Object.new()
     local self = {}
     setmetatable(self, {__index = Object})
     return self
end


--
http://oproj.tuxfamily.org