Saturday, 7 September 2013

Why does the use of ... in any expression in a function cause the value of arg to be nil in Lua?

Why does the use of ... in any expression in a function cause the value of
arg to be nil in Lua?

function tell(num,...)
print("value of implicit table:",arg)
--print("value of implicit table:",...)
select(1,arg)
--select(1,...)
end
tell(12,43,12,55)
Why is it that using ... in an expression causes the value of arg to
be nil e.g. with print("value of implicit table:",...) or select(1,...)?

No comments:

Post a Comment