lua-users home
lua-l archive

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


On 8 February 2013 15:47, Tim Mensch <tim-lua-l@bitgems.com> 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.

    henk