|
On Feb 22, 2006, at 8:18 PM, Chris wrote:
Not directly, no. Yes, I can grab 'a', and 'b' directly, but I can't use the (unknown) number of later values unless I shift the table down. local results = { func() } local a = table.remove( results, 1 ) local b = table.remove( results, 1 ) return 'x', unpack( results ) I had been assuming that I should avoid doing this. I thought that shifting the entire table down was relatively slow. Does Lua perform some nice internal magic on the internal array half of the table, just shifting the start pointer up? |