I was trying to write a function with a variable number of arguments which do something for all its number entries. so I came up with something like this:
function luaFunc (...)
for i,v in ipairs{...} do
if type(v)=='number' then
--do something
end
end
end
but when i run this, it stops right on first non-number argument. whats the problem?
pairsfunction, which iterates all keys in a table (not necessarily in order).