lua-users home
lua-l archive

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


trust.no.one wrote:
> Can I set for example __index of the methodtable whit the methodtable
> of
> the father?

Not quite.  You should set the __index of the _metatable_ of the
methodtable.  (Otherwise __index will be treated as an ordinary field.)  But
maybe this is what you meant above?

Bye,
Wim