[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: __pairs metamethod - is it in?
- From: David Burgess <dburgess@...>
- Date: Fri, 4 Feb 2005 08:08:43 +1000
I have code that is dependent on the existing rawget behaviour of ipairs.
I would request that it remain unchanged.
DB
> Closely related: I just had a problem with ipairs. The table in question
> emulates an indexed array via __index and __newindex calls that get the
> desired data from another location. Unfortunately, the built-in
> implementation of ipairs calls rawget and sees that there's nothing
> there, so no iteration happens.
>
> So my feature request of the day is one of two alternatives:
>
> (1) Rewrite the built-in implementation of ipairs to use get instead of
> rawget.
>