diff -u -r lua-5.4.6/Makefile lua-5.4.7/Makefile --- lua-5.4.6/Makefile 2023-05-02 17:06:08.000000000 -0300 +++ lua-5.4.7/Makefile 2024-05-08 18:47:12.410659176 -0300 @@ -46,7 +46,7 @@ # Lua version and release. V= 5.4 -R= $V.6 +R= $V.7 # Targets start here. all: $(PLAT) diff -u -r lua-5.4.6/README lua-5.4.7/README --- lua-5.4.6/README 2023-05-02 17:12:04.000000000 -0300 +++ lua-5.4.7/README 2024-06-13 19:16:31.055332641 -0300 @@ -1,5 +1,5 @@ -This is Lua 5.4.6, released on 02 May 2023. +This is Lua 5.4.7, released on 13 Jun 2024. For installation instructions, license details, and further information about Lua, see doc/readme.html. Only in lua-5.4.7/doc: OSIApproved_100X125.png diff -u -r lua-5.4.6/doc/contents.html lua-5.4.7/doc/contents.html --- lua-5.4.6/doc/contents.html 2023-04-01 14:57:06.000000000 -0300 +++ lua-5.4.7/doc/contents.html 2024-05-09 11:47:10.129223445 -0300 @@ -10,7 +10,7 @@
-Copyright © 2020–2023 Lua.org, PUC-Rio. +Copyright © 2020–2024 Lua.org, PUC-Rio. Freely available under the terms of the -Lua license. +Lua license.
-Copyright © 2020–2023 Lua.org, PUC-Rio. +Copyright © 2020–2024 Lua.org, PUC-Rio. Freely available under the terms of the -Lua license. +Lua license.
@@ -391,7 +391,7 @@ an error object is propagated with information about the error. Lua itself only generates errors whose error object is a string, -but programs may generate errors with +but programs can generate errors with any value as the error object. It is up to the Lua program or its host to handle such error objects. For historical reasons, @@ -401,7 +401,7 @@
When you use xpcall
(or lua_pcall
, in C)
-you may give a message handler
+you can give a message handler
to be called in case of errors.
This function is called with the original error object
and returns a new error object.
@@ -453,7 +453,7 @@
In the previous example, the key is the string "__add
"
and the metamethod is the function that performs the addition.
Unless stated otherwise,
-a metamethod may in fact be any callable value,
+a metamethod can in fact be any callable value,
which is either a function or a value with a __call
metamethod.
@@ -1725,7 +1725,7 @@
A label is visible in the entire block where it is defined, except inside nested functions. -A goto may jump to any visible label as long as it does not +A goto can jump to any visible label as long as it does not enter into the scope of a local variable. A label should not be declared where a label with the same name is visible, @@ -5571,7 +5571,7 @@
lua_toclose
-[-0, +0, m] +[-0, +0, v]
void lua_toclose (lua_State *L, int index);
@@ -5592,6 +5592,11 @@
+This function raises an error if the value at the given slot
+neither has a __close
metamethod nor is a false value.
+
+
+
This function should not be called for an index that is equal to or below an active to-be-closed slot. @@ -5664,6 +5669,12 @@ but can contain other zeros in its body. +
+This function can raise memory errors only
+when converting a number to a string
+(as then it may create a new string).
+
+
@@ -11276,13 +11287,13 @@
with the string what
describing which fields to fill in.
The default for what
is to get all information available,
except the table of valid lines.
-If present,
-the option 'f
'
+The option 'f
'
adds a field named func
with the function itself.
-If present,
-the option 'L
'
-adds a field named activelines
with the table of
-valid lines.
+The option 'L
' adds a field named activelines
+with the table of valid lines,
+provided the function is a Lua function.
+If the function has no debug information,
+the table is empty.
@@ -11619,6 +11630,10 @@
In particular,
the values of package.path
and package.cpath
are set with the default paths defined in luaconf.h
.
+To signal to the libraries that this option is on,
+the stand-alone interpreter sets the field
+"LUA_NOENV"
in the registry to a true value.
+Other libraries may consult this field for the same purpose.
@@ -12033,13 +12048,12 @@ -