aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto I <roberto@inf.puc-rio.br>2026-08-07 15:59:21 -0300
committerRoberto I <roberto@inf.puc-rio.br>2026-08-07 15:59:21 -0300
commit312b9efaa1061c2c4cad08554dbc1351c3270eef (patch)
tree6a95bfcff34921e4516ea47b960ccd33ed6c4ee6
parent03aabbc636eacf27a16694e5d86e4551ade8a954 (diff)
downloadlua-5.4.9.tar.gz
lua-5.4.9.tar.bz2
lua-5.4.9.zip
Small corrections in the manualv5.4.9v5.4
-rwxr-xr-xmanual/2html7
-rw-r--r--manual/manual.of18
2 files changed, 13 insertions, 12 deletions
diff --git a/manual/2html b/manual/2html
index 4e4de58a..f7952bd6 100755
--- a/manual/2html
+++ b/manual/2html
@@ -58,7 +58,7 @@ end
58 58
59local function compose (f,g) 59local function compose (f,g)
60 assert(f and g) 60 assert(f and g)
61 return function (s) return g(f(s)) end 61 return function (...) return g(f(...)) end
62end 62end
63 63
64local function concat (f, g) 64local function concat (f, g)
@@ -395,9 +395,10 @@ APIEntry = function (e)
395 local apiicmd, ne = string.match(e, "^(.-</span>)(.*)") 395 local apiicmd, ne = string.match(e, "^(.-</span>)(.*)")
396--io.stderr:write(e) 396--io.stderr:write(e)
397 if not apiicmd then 397 if not apiicmd then
398 return antipara(Tag.hr() .. Tag.h3(a)) .. Tag.pre(h) .. e 398 return antipara(Tag.hr() .. Tag.h3(a)) .. Tag.pre(h, {class="api"}) .. e
399 else 399 else
400 return antipara(Tag.hr() .. Tag.h3(a)) .. apiicmd .. Tag.pre(h) .. ne 400 return antipara(Tag.hr() .. Tag.h3(a)) .. apiicmd ..
401 Tag.pre(h, {class="api"}) .. ne
401 end 402 end
402end, 403end,
403 404
diff --git a/manual/manual.of b/manual/manual.of
index da71fbe9..e565ea7e 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -107,7 +107,7 @@ for small machines and embedded systems.
107 107
108Unless stated otherwise, 108Unless stated otherwise,
109any overflow when manipulating integer values @def{wrap around}, 109any overflow when manipulating integer values @def{wrap around},
110according to the usual rules of two-complement arithmetic. 110according to the usual rules of two's complement arithmetic.
111(In other words, 111(In other words,
112the actual result is the unique representable integer 112the actual result is the unique representable integer
113that is equal modulo @M{2@sp{n}} to the mathematical result, 113that is equal modulo @M{2@sp{n}} to the mathematical result,
@@ -609,7 +609,7 @@ as soon as the collector can be sure the object
609will not be accessed again in the normal execution of the program. 609will not be accessed again in the normal execution of the program.
610(@Q{Normal execution} here excludes finalizers, 610(@Q{Normal execution} here excludes finalizers,
611which can resurrect dead objects @see{finalizers}, 611which can resurrect dead objects @see{finalizers},
612and excludes also operations using the debug library.) 612and it excludes also operations using the debug library.)
613Note that the time when the collector can be sure that an object 613Note that the time when the collector can be sure that an object
614is dead may not coincide with the programmer's expectations. 614is dead may not coincide with the programmer's expectations.
615The only guarantees are that Lua will not collect an object 615The only guarantees are that Lua will not collect an object
@@ -1950,12 +1950,12 @@ Note that keys that are not positive integers
1950do not interfere with borders. 1950do not interfere with borders.
1951 1951
1952A table with exactly one border is called a @def{sequence}. 1952A table with exactly one border is called a @def{sequence}.
1953For instance, the table @T{{10, 20, 30, 40, 50}} is a sequence, 1953For instance, the table @T{{10,20,30,40,50}} is a sequence,
1954as it has only one border (5). 1954as it has only one border (5).
1955The table @T{{10, 20, 30, nil, 50}} has two borders (3 and 5), 1955The table @T{{10,20,30,nil,50}} has two borders (3 and 5),
1956and therefore it is not a sequence. 1956and therefore it is not a sequence.
1957(The @nil at index 4 is called a @emphx{hole}.) 1957(The @nil at index 4 is called a @emphx{hole}.)
1958The table @T{{nil, 20, 30, nil, nil, 60, nil}} 1958The table @T{{nil,20,30,nil,nil,60,nil}}
1959has three borders (0, 3, and 6), 1959has three borders (0, 3, and 6),
1960so it is not a sequence, too. 1960so it is not a sequence, too.
1961The table @T{{}} is a sequence with border 0. 1961The table @T{{}} is a sequence with border 0.
@@ -2318,7 +2318,7 @@ we recommend assigning the vararg expression
2318to a single variable and using that variable 2318to a single variable and using that variable
2319in its place. 2319in its place.
2320 2320
2321Here are some examples of uses of mutlres expressions. 2321Here are some examples of uses of multires expressions.
2322In all cases, when the construction needs 2322In all cases, when the construction needs
2323@Q{the n-th result} and there is no such result, 2323@Q{the n-th result} and there is no such result,
2324it uses a @nil. 2324it uses a @nil.
@@ -3471,9 +3471,9 @@ because a pseudo-index is not an actual stack position.
3471The type of integers in Lua. 3471The type of integers in Lua.
3472 3472
3473By default this type is @id{long long}, 3473By default this type is @id{long long},
3474(usually a 64-bit two-complement integer), 3474(usually a 64-bit two's complement integer),
3475but that can be changed to @id{long} or @id{int} 3475but that can be changed to @id{long} or @id{int}
3476(usually a 32-bit two-complement integer). 3476(usually a 32-bit two's complement integer).
3477(See @id{LUA_INT_TYPE} in @id{luaconf.h}.) 3477(See @id{LUA_INT_TYPE} in @id{luaconf.h}.)
3478 3478
3479Lua also defines the constants 3479Lua also defines the constants
@@ -3689,7 +3689,7 @@ passes to the allocator in every call.
3689@apii{0,1,m} 3689@apii{0,1,m}
3690 3690
3691Creates a new empty table and pushes it onto the stack. 3691Creates a new empty table and pushes it onto the stack.
3692It is equivalent to @T{lua_createtable(L, 0, 0)}. 3692It is equivalent to @T{lua_createtable(L,0,0)}.
3693 3693
3694} 3694}
3695 3695