lua-users home
lua-l archive

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

On Fri, Mar 3, 2017 at 7:01 PM, Peter Aronoff <> wrote:
> A quick question, and I apologize because I don’t recall if this was an
> issue before or it’s new. Like a lot of people, I now use this in modules
> that require unpack:
>         local unpack = unpack or table.unpack
> That, however, yields this warning from luacheck:
>         src/tapered.lua:9:16: accessing undefined variable unpack
> I get what’s happening here, and I can simply choose to ignore this
> warning, but I wonder if people have any thoughts about how else to handle
> a cross-lua module that uses unpack.

luacheck --std max or --read-globals unpack ?

Francisco Olarte.