Originally Posted by Billtopia
Code:
tAppend = function( myTable, ... )
myTable = { unpack( myTable ), ... }
end
|
Reading this more, I discovered a couple fatal flaws. When you're referencing to
unpack(myTable), since it isn't the last value in the list for the table constructor, it's only using the first value returned and discarding the rest of the table. Secondly, you're only reassigning the local variable of the function to the new pointer, this won't affect the table passed in any way.