diff options
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/manual/manual.of b/manual/manual.of index ff4e79fe..b34e1e9c 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -290,7 +290,9 @@ an @def{error object} | |||
290 | is propagated with information about the error. | 290 | is propagated with information about the error. |
291 | Lua itself only generates errors whose error object is a string, | 291 | Lua itself only generates errors whose error object is a string, |
292 | but programs can generate errors with | 292 | but programs can generate errors with |
293 | any value as the error object. | 293 | any value as the error object, |
294 | except @nil. | ||
295 | (Lua will change a @nil as error object to a string message.) | ||
294 | It is up to the Lua program or its host to handle such error objects. | 296 | It is up to the Lua program or its host to handle such error objects. |
295 | For historical reasons, | 297 | For historical reasons, |
296 | an error object is often called an @def{error message}, | 298 | an error object is often called an @def{error message}, |
@@ -8082,6 +8084,8 @@ multiple assignment: | |||
8082 | The default for @id{a2} is @id{a1}. | 8084 | The default for @id{a2} is @id{a1}. |
8083 | The destination range can overlap with the source range. | 8085 | The destination range can overlap with the source range. |
8084 | The number of elements to be moved must fit in a Lua integer. | 8086 | The number of elements to be moved must fit in a Lua integer. |
8087 | If @id{f} is larger than @id{e}, | ||
8088 | nothing is moved. | ||
8085 | 8089 | ||
8086 | Returns the destination table @id{a2}. | 8090 | Returns the destination table @id{a2}. |
8087 | 8091 | ||
@@ -9402,6 +9406,11 @@ declare a local variable with the same name in the loop body. | |||
9402 | A chain of @id{__call} metamethods can have at most 15 objects. | 9406 | A chain of @id{__call} metamethods can have at most 15 objects. |
9403 | } | 9407 | } |
9404 | 9408 | ||
9409 | @item{ | ||
9410 | In an error, a @nil as the error object is replaced by a | ||
9411 | string message. | ||
9412 | } | ||
9413 | |||
9405 | } | 9414 | } |
9406 | 9415 | ||
9407 | } | 9416 | } |