[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Coercion to string does not call metamethod (Was: Lua minus null (-0)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 12 Jun 2011 16:42:14 -0300
> So what is a core metamethod, and why is this one different?
A core metamethod is one supported by the core. __tostring is something
tostring offers and some other library functions use. It is not a core
metamethod because it is defined by a library function.