[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: [ANN] Luacheck 0.19.0
- From: Peter Aronoff <telemachus@...>
- Date: Fri, 3 Mar 2017 13:34:01 -0500
Dirk Laurie <email@example.com> wrote:
> You could try
> local unpack = table.unpack or unpack
> Speaking as someone who does not feel the need to satisfy luacheck's
> requirements, I can't test whether that will do the trick.
I suspect it would silence the warning for Lua 5.3, but create warnings for
lower versions of Lua (which would have nothing defined for table.unpack).
I’m not so much concerned with the one warning as I am the general question
of how other people do this require. The idea of _G.unpack makes good sense
to me, and it also silences the warning.
Thanks all, Peter
We have not been faced with the need to satisfy someone else's
requirements, and for this freedom we are grateful.
Dennis Ritchie and Ken Thompson, The UNIX Time-Sharing System