lua-users home
lua-l archive

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


Ugh, I'm a noob so I didn't know that. Thanks for the clarification :)

On Tue, May 19, 2009 at 18:15, Mike Pall <mikelu-0905@mike.de> wrote:
> Cosmin Apreutesei wrote:
>> function test2(...) print(arg[1]) end
>
> The Lua 5.0 vararg syntax is deprecated.
>
> Quoting http://luajit.org/luajit_features.html
> | 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.
>
> --Mike
>