lua-users home
lua-l archive

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


Enrico Tassi wrote:
This is wrong, it will compare only the first table element:

Besides, I meant generic key-value tables, not only arrays. e.g.:

  t1 = { a=3, b='hello', answer=42, done=false }
  t2 = { a=3, b='hello', answer=42 }

So #t1 is 0 and the order of the elements is undefined.

  Enrico