Enrico Colombini wrote:
Slower, I'd think. It needs to make an external function call (not to mention the table lookup required to find table.insert, but that's quibbling), and table.insert is inherently more complex than the simple assignment. I could be wrong, though; certainly, I've seen 't[#t+1]=7' recommended as the Right Way of adding items to an array.David Given wrote:for i = 1, n do out[i] = self endWould "table.insert(out, self)" be faster or slower than the above?
-- David Given dg@cowlark.com