|
|
||
|
Peter Cawley wrote:
Finally, it also looks acceptable as the table length:
function print_funny(...)
local args = table.pack(...)
for i = 1, #args do print(">", args[i], "<") end
end
This is not consistent with the other methods if there are trailing
nils, e.g. print_funny(1, nil, nil) gives n==3 but #args==1