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: http://alt.textdrive.com/lua/19/lua-story-of-o http://dev.alt.textdrive.com/file/lu/LUObject.lua Cheers -- PA, Onnay Equitursay http://alt.textdrive.com/