lua-users home
lua-l archive

Re: [ANN] Lua 5.3.0 (work2) now available (number coercion holy crusade)

[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.

AltStyle によって変換されたページ (->オリジナル) /