function printAll(...)
for i=1, #arg do
print(i, arg[i])
end
end
printAll("Megadeth", "Metallica", "Slayer", "Anthrax")
Sunday, May 13, 2012
Variable Arguments
Labels:
Lua
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment