lua-users home
lua-l archive

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


On Tue, Jul 7, 2015 at 2:27 PM, Soni L. <fakedme@gmail.com> wrote:
> Currently _VERSION states:
>
> A global variable (not a function) that holds a string containing the
> current interpreter version. The current value of this variable is "|Lua
> 5.3|".
>
> It would be better, for compatibility purposes, to put it as:
>
> A global variable (not a function) that holds a string containing the
> current Lua version. The current value of this variable is "|Lua 5.3|".
>
> That way a script can safely assume _VERSION contains the Lua version, or
> tell if an implementation deviates from standard Lua. _VERSION == "Lua 5.3"
> would be true in Lua 5.3, and any other Lua 5.3 implementation, but if a
> fork of Lua 5.3 appeared, it would be encouraged to change _VERSION from
> "Lua 5.3" to (e.g.) "LuaFork 1.0".
>
> This would fix LuaJ being stubborn [1].
>
> [1] https://sourceforge.net/p/luaj/bugs/27/
>
> --
> Disclaimer: these emails are public and can be accessed from <TODO: get a
> non-DHCP IP and put it here>. If you do not agree with this, DO NOT REPLY.
>
>

Why is it enclosed in ||?

-- 
Sent from my Game Boy.