Re: ipairs() and __ipairs()
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: ipairs() and __ipairs()
- From: Patrick Donnelly <batrick@...>
- Date: 2014年10月26日 16:40:45 -0400
On Sun, Oct 26, 2014 at 4:29 PM, Tim Hill <drtimhill@gmail.com> wrote:
> Agreed, but my reading of the docs is that it DOES honor __index, so it does rely on metamethods.
Well, I see the code does honor __index. [It seems my complaining in
earlier threads paid off!] ... but I don't see that in the docs?
There's no mention of ipairs using raw/normal access in any of Lua's
5.1, 5.2, or 5.3 beta manuals.
I wouldn't really say that ipairs "relies" on __index, as it only
indirectly controls (ends) the iteration.
--
Patrick Donnelly