-- assigning a table copies the reference, not the data local a = {1, 2, 3} local b = a table.insert(b, 4) -- a and b are the SAME table print(#a)
a table variable holds a reference