[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: pairs() instead of ipairs() in Lua 5.2
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sat, 22 May 2010 16:13:04 -0300
> Take the behavior of ipairs(..) in Lua 5.1 and make it a special case
> of pairs() in Lua 5.2. What is needed is simply that the language
> guarantees that the iterator returned by pairs() will return the
> values corresponding to the keys 1 and upwards in order. The order
> before that, or the order of any keys after the first nil-valued
> integer keys is arbitrary.
This is messy to implement.