[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Why don't pairs() and ipairs() obey an __index metamethod?
- From: Mark Hamburg <mhamburg@...>
- Date: Fri, 21 Sep 2007 09:09:12 -0700
This basically gets us back to the point that pairs should probably be
redefined to look for a __pairs metamethod.
This might make sense for ipairs as well though that case could also be
addressed by using an integer indexed get in place of the lua_rawgeti. For
efficiency, it might be necessary to introduce lua_geti.
For efficiency reasons, it seems less appealing to introduce a metamethod