lua-users home
lua-l archive

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


>From lua4.1, you can easily simulate class inheritance effect using 
metatable. OOP makes easy! However you need some kind of pattern if 
you want OOP using lua. Especially lua doesn't have a kind of 
constructor. So if you are trying to build OO-style library, and it 
has some depth of class inheritance, you are surely need consistent 
usage pattern for class inheritance. (In luabooks.pdf you can see 
some hints, but not satisfactory)

Anybody already have it?