lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

Cosmin Apreutesei wrote:
> function test2(...) print(arg[1]) end

The Lua 5.0 vararg syntax is deprecated.

| LuaJIT ships with LUA_COMPAT_VARARG turned off. I.e. the
| implicit arg parameter is not created anymore. Please have a
| look at the comments in luaconf.h for this configuration option.
| You can turn it on, if you really need it. Or better yet,
| convert your code to the new Lua 5.1 vararg syntax.