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]
- Subject: Re: Coercion to string does not call metamethod (Was: Lua minus null (-0)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: 2011年6月12日 15:12:53 -0300
> > 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.