lua-users home
lua-l archive

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

> OK, so that's just brilliant, and was exactly what I was looking for.  Now
> the question is, what am I potentially getting myself into by overwriting
> the __tostring metamethod?

The __tostring metamethod is only used in print and in tostring; it's not
a core metamethod. I'm not sure this answers your question but there it is.