[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: metatable transmission
- From: steve donovan <steve.j.donovan@...>
- Date: Mon, 21 Dec 2009 20:22:58 +0200
On Mon, Dec 21, 2009 at 7:39 PM, Sam Roberts <vieuxtech@gmail.com> wrote:
> Depends on how you implemented inheritance, doesn't it?
Indeed, metamethods like __tostring must belong to the direct MT of a
table, and not via inheritance. I've always done 'fat metatable'
inheritance so the problem never appears since metatables are never
shared between classes.