
+
@@ 2165,8 +2165,9 @@
as it has only one border (5).
The table {10, 20, 30, nil, 50}
has two borders (3 and 5),
and therefore it is not a sequence.
The table {nil, 20, 30, nil, 50, nil}
has three borders (0, 3 and 5),
so it also is not a sequence.
+The table {nil, 20, 30, nil, nil, 60, nil}
+has three borders (0, 3, and 6),
+so it is not a sequence, too.
The table {}
is a sequence with border 0.
Note that nonnatural keys do not interfere
with whether a table is a sequence.
@@ 2185,6 +2186,12 @@
+The computation of the length of a table +has a guaranteed worst time of O(log n), +where n is the largest natural key in the table. + + +
A program can modify the behavior of the length operator for
any value but strings through the __len
metamethod (see §2.4).
@@ 4340,7 +4347,7 @@
When n
is zero,
this function creates a light N{C function},
+this function creates a light C function,
which is just a pointer to the C function.
In that case, it never raises a memory error.
@@ 10968,7 +10975,7 @@