[Date Prev][Date Next][Thread Prev][Thread Next]
- 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 <email@example.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.