lua-users home
lua-l archive

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


Create a new table for every instance.

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


--
http://oproj.tuxfamily.org