lua-users home
lua-l archive

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


2014-03-25 6:41 GMT+02:00 Tim Hill <drtimhill@gmail.com>:

> I think __tostring() should get invoked ONLY when tostring() is explicitly called.

That's a liitle extreme.

The API and VM instructions, like print(), invoke__tostring() automatically.
I can live with that (in fact, I want access to it). I also like the
automatic call
in the %s specifier to string.format(). There must be one such format
specifier, it may as well be %s.

But apart from those, yes.