Manual updated to version 5.5

This commit is contained in:
Roberto Ierusalimschy
2025-06-27 14:46:41 -03:00
parent f6c627af20
commit 1da89da62f
2 changed files with 9 additions and 9 deletions

View File

@@ -8,11 +8,11 @@
--------------------------------------------------------------- ---------------------------------------------------------------
header = [[ header = [[
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> <!DOCTYPE html>
<html> <html>
<head> <head>
<title>Lua 5.4 Reference Manual</title> <title>Lua 5.5 Reference Manual</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<link rel="stylesheet" href="lua.css"> <link rel="stylesheet" href="lua.css">
<link rel="stylesheet" href="manual.css"> <link rel="stylesheet" href="manual.css">
@@ -23,7 +23,7 @@ header = [[
<hr> <hr>
<h1> <h1>
<a href="http://www.lua.org/home.html"><img src="logo.gif" alt="[Lua logo]" border="0"></a> <a href="http://www.lua.org/home.html"><img src="logo.gif" alt="[Lua logo]" border="0"></a>
Lua 5.4 Reference Manual Lua 5.5 Reference Manual
</h1> </h1>
by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes by Roberto Ierusalimschy, Luiz Henrique de Figueiredo, Waldemar Celes

View File

@@ -6908,7 +6908,7 @@ and @St{userdata}.
A global variable (not a function) that A global variable (not a function) that
holds a string containing the running Lua version. holds a string containing the running Lua version.
The current value of this variable is @St{Lua 5.4}. The current value of this variable is @St{Lua 5.5}.
} }
@@ -7154,7 +7154,7 @@ to search for a @N{C loader}.
Lua initializes the @N{C path} @Lid{package.cpath} in the same way Lua initializes the @N{C path} @Lid{package.cpath} in the same way
it initializes the Lua path @Lid{package.path}, it initializes the Lua path @Lid{package.path},
using the environment variable @defid{LUA_CPATH_5_4}, using the environment variable @defid{LUA_CPATH_5_5},
or the environment variable @defid{LUA_CPATH}, or the environment variable @defid{LUA_CPATH},
or a default path defined in @id{luaconf.h}. or a default path defined in @id{luaconf.h}.
@@ -7223,7 +7223,7 @@ A string with the path used by @Lid{require}
to search for a Lua loader. to search for a Lua loader.
At start-up, Lua initializes this variable with At start-up, Lua initializes this variable with
the value of the environment variable @defid{LUA_PATH_5_4} or the value of the environment variable @defid{LUA_PATH_5_5} or
the environment variable @defid{LUA_PATH} or the environment variable @defid{LUA_PATH} or
with a default path defined in @id{luaconf.h}, with a default path defined in @id{luaconf.h},
if those environment variables are not defined. if those environment variables are not defined.
@@ -7594,9 +7594,9 @@ x = string.gsub("4+5 = $return 4+5$", "%$(.-)%$", function (s)
end) end)
-- x="4+5 = 9" -- x="4+5 = 9"
local t = {name="lua", version="5.4"} local t = {name="lua", version="5.5"}
x = string.gsub("$name-$version.tar.gz", "%$(%w+)", t) x = string.gsub("$name-$version.tar.gz", "%$(%w+)", t)
-- x="lua-5.4.tar.gz" -- x="lua-5.5.tar.gz"
} }
} }
@@ -9332,7 +9332,7 @@ when the standard input (@id{stdin}) is a terminal,
and as @T{lua -} otherwise. and as @T{lua -} otherwise.
When called without the option @T{-E}, When called without the option @T{-E},
the interpreter checks for an environment variable @defid{LUA_INIT_5_4} the interpreter checks for an environment variable @defid{LUA_INIT_5_5}
(or @defid{LUA_INIT} if the versioned name is not defined) (or @defid{LUA_INIT} if the versioned name is not defined)
before running any argument. before running any argument.
If the variable content has the format @T{@At@rep{filename}}, If the variable content has the format @T{@At@rep{filename}},