Getting arg to work in a varag function in Lua 5.2 (integrated in Delphi)
snippet in lua

Getting arg to work in a varag function in Lua 5.2 (integrated in Delphi)

user4222

function debug(name, ...)
    local arg = table.pack(...)
    print(name)
    for i=1,arg.n do
        print(i, arg[i])
    end
end