diff --git a/Makefile b/Makefile index 8efa2eb..72ca8ff 100644 --- a/Makefile +++ b/Makefile @@ -46,7 +46,7 @@ TO_MAN= lua.1 luac.1 # Lua version and release. V= 5.4 -R= $V.6 +R= $V.7 # Targets start here. all: $(PLAT) diff --git a/README b/README index 1ae9716..fe99b87 100644 --- a/README +++ b/README @@ -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. diff --git a/doc/OSIApproved_100X125.png b/doc/OSIApproved_100X125.png new file mode 100644 index 0000000..795f7a0 Binary files /dev/null and b/doc/OSIApproved_100X125.png differ diff --git a/doc/contents.html b/doc/contents.html index 1231e6d..e171048 100644 --- a/doc/contents.html +++ b/doc/contents.html @@ -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 @@ Whenever there is an error, 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 @@ even though it does not have to be a string.
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 @@ which is then called a metamethod.
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 @@ labels in Lua are considered statements too:
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 @@ otherwise, returns NULL
.
lua_toclose
-[-0, +0, m] +[-0, +0, v]
void lua_toclose (lua_State *L, int index);
@@ -5591,6 +5591,11 @@ by any other function in the API except
+This function raises an error if the value at the given slot
+neither has a
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 @@ after its last character (as in C),
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 @@ The returned table can contain all the fields returned by what
@@ -11619,6 +11630,10 @@ Lua does not consult any environment variables.
In particular,
the values of
@@ -12033,13 +12048,12 @@ and LiteralString, see §3.1.)
-
lua_settop
unless previously deactivated by
describing which fields to fill in.
The default for lua_closeslot
.
+__close
metamethod nor is a false value.
+
+
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.
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.