[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Confusive text in Lua doc "Variable Number of Arguments" about "arg"
- From: Philippe Verdy <verdyp@...>
- Date: Thu, 9 Sep 2021 13:57:50 +0200
Sorry, I did not know that ";" was accepted as a valid separator between key/value pairs in table constructors. I've never used it, never seen it in any Lua source, and I have missed that point in all the docs I read.
I've only seen that key/value pairs could have a trailing comma (a common practice in Lua, even if it's not valid in JSON).
It's hard to follow the changes in Lua versions and documentation; changes in Lua 5.2, 5.3 and now 5.4 are making them incompatible with previous versions, so Lua 5.1 cannot be declared "obsolete", it is not directly upgradable without inspecting (and testing/debugging again) all existing scripts. These Lua versions are distinct languages.