[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Add the _RELEASE global variable to get the Lua release version number
- From: Roberto Ierusalimschy <roberto@...>
- Date: Sat, 10 Apr 2021 10:41:09 -0300
> The following messages are changed between Lua 5.4.2 and 5.4.3:
> 5.4.2:[string \"vim chunk\"]:1: attempt to call a nil value (global 'func')
> 5.4.3:[string \"vim chunk\"]:1: global 'func' is not callable (a nil value)
> 5.4.2:[string \"luaeval\"]:1: attempt to call a nil value (field 'xyz')
> 5.4.3:[string \"luaeval\"]:1: field 'xyz' is not callable (a nil value)
> 5.4.2:[string \"vim chunk\"]:1: attempt to call a nil value (method 'xyz')
> 5.4.3:[string \"vim chunk\"]:1: method 'xyz' is not callable (a nil value)
Thanks. That change was unfortunate; we will revert to the old messages,
which are consistent with other similar messages.
For now, you can use the following code to test the release :-)
function isrelease5_4_3 ()
local stat, msg = pcall(function () goo() end)
return string.find(msg, "callable") and true or false
end
-- Roberto