lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


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.
>