lua-users home
lua-l archive

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


On Sun, Jun 12, 2011 at 12:12, Luiz Henrique de Figueiredo
<lhf@tecgraf.puc-rio.br> wrote:
>> > 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.
>
>

So what is a core metamethod, and why is this one different?

-- 
Sent from my toaster.