lua-users home
lua-l archive

Re: Coercion to string does not call metamethod (Was: Lua minus null (-0)

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


> > In Lua 5.2, __tostring will be called by string.format and there will be
> > luaL_tolstring which respects __tostring.
> >
> 
> That's good, but why a new C method, rather than making lua_tostring use it?
Because __tostring is not a *core* metamethod.

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