View Single Post
06-20-12, 01:20 AM   #16
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,326
Originally Posted by Billtopia View Post
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.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)

Last edited by SDPhantom : 06-20-12 at 01:24 AM.
  Reply With Quote