[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: ipairs() and __ipairs()
- From: Tim Hill <drtimhill@...>
- Date: Sun, 26 Oct 2014 13:06:09 -0700
At the risk of doing this topic to death…
So now that ipairs() has been reverted to a more 5.2 like behavior, should __ipairs() still be deprecated? When ipairs() was going to just be 1..#t then this metamethod was redundant since the __len metamethod could be used to control the iteration. Now that ipairs() no longer does that, I think the __ipairs() metamethod has some justification to existing again.
—Tim