When compiling against Lua 5.2, I receive errors related to the by now unknown arg keyword. In [1] the workaround
local arg = table.pack(...)
is suggested.
[1] http://stackoverflow.com/questions/9786051/getting-arg-to-work-in-a-varag-function-in-lua-5-2-integrated-in-delphi