Why is it, that if I do the following:
local tab1 = {3,3,3,3,3,3}
local tab2 = {3,3,3,3,3,3}
if tab1 == tab2 then print("true") else print("false") end
The result is false, and yet if I do this:
local tab1 = {3,3,3,3,3,3}
local tab2 = tab1
if tab1 == tab2 then print("true") else print("false") end
The result is true?It seems rather illogical that the first should return false, as it means each item has to be tested individually, which is quite impractical.
Even if a table.isEqual(table1, table2) function existed, it would make more sense, but otherwise it's absolute madness.