[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Possible bug in LuaJIT?
- From: Cosmin Apreutesei <cosmin.apreutesei@...>
- Date: Tue, 19 May 2009 18:27:21 +0300
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
>