lua-users home
lua-l archive

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