[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: When was the __pairs metamethod introduced?
- From: Marc Balmer <marc@...>
- Date: Tue, 12 Apr 2016 13:54:55 +0200
> Am 12.04.2016 um 13:45 schrieb Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
>
>> Wasn't the __pairs metamethod first available in Lua 5.2? It is not mentioned here: http://www.lua.org/manual/5.2/manual.html#8.3 <http://www.lua.org/manual/5.2/manual.html#8.3> Are such changes generally not listed?
>
> It's listed in http://www.lua.org/manual/5.2/readme.html#changes .
>
Oh, I see. So there is __ipairs, too. Maybe that could be noted in the doc as well, http://www.lua.org/manual/5.3/manual.html#pdf-ipairs does not mention it, while http://www.lua.org/manual/5.3/manual.html#pdf-pairs does.