[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: When was the __pairs metamethod introduced?
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Tue, 12 Apr 2016 09:05:06 -0300
> 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.
In Lua 5.3, there is no __ipairs, though it is present for compatibility.
- ipairs and the table library respect metamethods