diff options
| author | Roberto I <roberto@inf.puc-rio.br> | 2026-08-07 15:59:21 -0300 |
|---|---|---|
| committer | Roberto I <roberto@inf.puc-rio.br> | 2026-08-07 15:59:21 -0300 |
| commit | 312b9efaa1061c2c4cad08554dbc1351c3270eef (patch) | |
| tree | 6a95bfcff34921e4516ea47b960ccd33ed6c4ee6 /manual | |
| parent | 03aabbc636eacf27a16694e5d86e4551ade8a954 (diff) | |
| download | lua-5.4.9.tar.gz lua-5.4.9.tar.bz2 lua-5.4.9.zip | |
Diffstat (limited to '')
| -rwxr-xr-x | manual/2html | 7 | ||||
| -rw-r--r-- | manual/manual.of | 18 |
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 | ||
| 59 | local function compose (f,g) | 59 | local 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 |
| 62 | end | 62 | end |
| 63 | 63 | ||
| 64 | local function concat (f, g) | 64 | local 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 |
| 402 | end, | 403 | end, |
| 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 | ||
| 108 | Unless stated otherwise, | 108 | Unless stated otherwise, |
| 109 | any overflow when manipulating integer values @def{wrap around}, | 109 | any overflow when manipulating integer values @def{wrap around}, |
| 110 | according to the usual rules of two-complement arithmetic. | 110 | according to the usual rules of two's complement arithmetic. |
| 111 | (In other words, | 111 | (In other words, |
| 112 | the actual result is the unique representable integer | 112 | the actual result is the unique representable integer |
| 113 | that is equal modulo @M{2@sp{n}} to the mathematical result, | 113 | that 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 | |||
| 609 | will not be accessed again in the normal execution of the program. | 609 | will 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, |
| 611 | which can resurrect dead objects @see{finalizers}, | 611 | which can resurrect dead objects @see{finalizers}, |
| 612 | and excludes also operations using the debug library.) | 612 | and it excludes also operations using the debug library.) |
| 613 | Note that the time when the collector can be sure that an object | 613 | Note that the time when the collector can be sure that an object |
| 614 | is dead may not coincide with the programmer's expectations. | 614 | is dead may not coincide with the programmer's expectations. |
| 615 | The only guarantees are that Lua will not collect an object | 615 | The only guarantees are that Lua will not collect an object |
| @@ -1950,12 +1950,12 @@ Note that keys that are not positive integers | |||
| 1950 | do not interfere with borders. | 1950 | do not interfere with borders. |
| 1951 | 1951 | ||
| 1952 | A table with exactly one border is called a @def{sequence}. | 1952 | A table with exactly one border is called a @def{sequence}. |
| 1953 | For instance, the table @T{{10, 20, 30, 40, 50}} is a sequence, | 1953 | For instance, the table @T{{10,20,30,40,50}} is a sequence, |
| 1954 | as it has only one border (5). | 1954 | as it has only one border (5). |
| 1955 | The table @T{{10, 20, 30, nil, 50}} has two borders (3 and 5), | 1955 | The table @T{{10,20,30,nil,50}} has two borders (3 and 5), |
| 1956 | and therefore it is not a sequence. | 1956 | and 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}.) |
| 1958 | The table @T{{nil, 20, 30, nil, nil, 60, nil}} | 1958 | The table @T{{nil,20,30,nil,nil,60,nil}} |
| 1959 | has three borders (0, 3, and 6), | 1959 | has three borders (0, 3, and 6), |
| 1960 | so it is not a sequence, too. | 1960 | so it is not a sequence, too. |
| 1961 | The table @T{{}} is a sequence with border 0. | 1961 | The table @T{{}} is a sequence with border 0. |
| @@ -2318,7 +2318,7 @@ we recommend assigning the vararg expression | |||
| 2318 | to a single variable and using that variable | 2318 | to a single variable and using that variable |
| 2319 | in its place. | 2319 | in its place. |
| 2320 | 2320 | ||
| 2321 | Here are some examples of uses of mutlres expressions. | 2321 | Here are some examples of uses of multires expressions. |
| 2322 | In all cases, when the construction needs | 2322 | In 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, |
| 2324 | it uses a @nil. | 2324 | it uses a @nil. |
| @@ -3471,9 +3471,9 @@ because a pseudo-index is not an actual stack position. | |||
| 3471 | The type of integers in Lua. | 3471 | The type of integers in Lua. |
| 3472 | 3472 | ||
| 3473 | By default this type is @id{long long}, | 3473 | By default this type is @id{long long}, |
| 3474 | (usually a 64-bit two-complement integer), | 3474 | (usually a 64-bit two's complement integer), |
| 3475 | but that can be changed to @id{long} or @id{int} | 3475 | but 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 | ||
| 3479 | Lua also defines the constants | 3479 | Lua 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 | ||
| 3691 | Creates a new empty table and pushes it onto the stack. | 3691 | Creates a new empty table and pushes it onto the stack. |
| 3692 | It is equivalent to @T{lua_createtable(L, 0, 0)}. | 3692 | It is equivalent to @T{lua_createtable(L,0,0)}. |
| 3693 | 3693 | ||
| 3694 | } | 3694 | } |
| 3695 | 3695 | ||
