[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: use of gettop to change functionality
- From: Axel Kittenberger <axkibe@...>
- Date: Tue, 1 Mar 2011 23:11:58 +0100
Typo: this should be T[T.n]:
function myinsert(T, ...)
local n = select('#', ...)
for i=1,n do
T.n = T.n + 1
T[T.n] = (select(i, ...))
end
return T
end