lua-users home
lua-l archive

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


> is the metamethod model in Lua getting more complicated (as opposed to complex)?

I don't think so. If you, like me, make a distinction between core
metamethods and library metamethods, then the core metamethods are
simple and reflect the semantics of Lua, while library metamethods are
some how expected to have to interact with each other and with other
library functions. Witness the recent postings about which library
functions should honor __tostring and how __pairs and __pairs should
behave, especially in the presenceof len metamethods. From this comes
complications and complexity...