[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Deterministic table iteration
- From: Henk Boom <henk@...>
- Date: Fri, 8 Feb 2013 15:57:42 -0500
On 8 February 2013 15:47, Tim Mensch <firstname.lastname@example.org> wrote:
> The order isn't defined unless you use contiguous integer keys starting from
> 1 AND you use ipairs() to iterate. Relying on a deterministic order
> otherwise is asking for trouble.
Isn't the iteration order of ipairs always deterministic, regardless
of how you've used the table? Both the source code and documentation
seem to suggest this.