lua-users home
lua-l archive

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


Hello,

"it's undefined" means "no guarantees are made about the order." The hope is that people will not rely on the order, then the implementation can be changed in the future without anyone's code breaking, because they did not rely on the order.


On Sun, Oct 11, 2020, 17:37 孙世龙 sunshilong <sunshilong369@gmail.com> wrote:
How to comprehend "due to the way that Lua implements tables, the
order that elements appear in a traversal is undefined".

Could somebody explain that in more depth?

Best regards
Sunshilong