lua-users home
lua-l archive

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

on 13/6/02 11:35 PM, Steve Dekorte at wrote:

> On Thursday, June 13, 2002, at 11:10  AM, Gary Makin wrote:
>> I'm having trouble finding an example of how to implement
>> inheritance using version 4.0 of Lua.
> Here's one example:

I understand most of this example code I think. I'm confused about the
requirement for "addSlot" though. It's used in:

Is it a mechanism to allow a method's scope to be a "derived" object, rather
than the object that the method is defined in?

Is there a document describing this approach to implementing a prototype
object model? 

Thanks very much,