lua-users home
lua-l archive

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


On Wed, Dec 16, 2009 at 9:19 PM, Cosmin Apreutesei
<cosmin.apreutesei@gazolin.ro> wrote:
> In the face of metamethods, type() becomes irrelevant -- it only tells
> you how a value is implemented, not how it is expected to behave.

Yes, so like others, I've written utility functions to detect the
'effective' type of an object.  This depends on the OOP style used, so
it can never be standard.