[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Why don't pairs() and ipairs() obey an __index
- From: "W. C. Bubel" <inmatarian@...>
- Date: Sat, 22 Sep 2007 15:50:59 -0400
I'm trying to wrap my head around the idea. __index and __newindex are used to represent the entirety of the possible namespace. I can see ipairs possibly applying, since there is a __len metamethod. However, pairs would have no defined endpoint for encompassing the namespace of a table, and the resulting set would be infinite.