lua-users home
lua-l archive

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

On Apr 14, 2005, at 14:19, Michael Cumming wrote:

I have been following the examples in the book and have a question about inheritance. I can see how it works for a single parent/child but what about parent/child1/child2?

Well... classes are table of functions... as long as you setup the table's metatable properly you can have arbitrarily deep class hierarchy.

Here is an alternative take on it:


PA, Onnay Equitursay