Re: Why don't pairs() and ipairs() obey an __index
[
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: 2007年9月22日 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.