[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: inheritance pattern in lua4.1?
- From: "yonghichoi" <yonghichoi@...>
- Date: Tue, 23 Apr 2002 03:07:27 -0000
>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?