diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-16 14:58:02 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-08-16 14:58:02 -0300 |
commit | b96b0b5abbf40cbdbed7952bf35a5a27ddf75928 (patch) | |
tree | 5d9d5463cb7d3424833abab20dd87bce1f4b240f /manual | |
parent | ca13be9af784b7288d3a07d9b5bccb329086e885 (diff) | |
download | lua-b96b0b5abbf40cbdbed7952bf35a5a27ddf75928.tar.gz lua-b96b0b5abbf40cbdbed7952bf35a5a27ddf75928.tar.bz2 lua-b96b0b5abbf40cbdbed7952bf35a5a27ddf75928.zip |
Added macro 'luaL_pushfail'
The macro 'luaL_pushfail' documents all places in the standard libraries
that return nil to signal some kind of failure. It is defined as
'lua_pushnil'. The manual also got a notation (@fail) to document those
returns. The tests were changed to be agnostic regarding whether 'fail'
is 'nil' or 'false'.
Diffstat (limited to 'manual')
-rwxr-xr-x | manual/2html | 1 | ||||
-rw-r--r-- | manual/manual.of | 87 |
2 files changed, 52 insertions, 36 deletions
diff --git a/manual/2html b/manual/2html index 605c6e59..a300f8d4 100755 --- a/manual/2html +++ b/manual/2html | |||
@@ -324,6 +324,7 @@ N = function (s) return (string.gsub(s, " ", " ")) end, | |||
324 | NE = id, -- tag"foreignphrase", | 324 | NE = id, -- tag"foreignphrase", |
325 | num = id, | 325 | num = id, |
326 | ["nil"] = fixed(Tag.b"nil"), | 326 | ["nil"] = fixed(Tag.b"nil"), |
327 | fail = fixed(Tag.b"fail"), | ||
327 | Open = fixed"{", | 328 | Open = fixed"{", |
328 | part = section("h1", true), | 329 | part = section("h1", true), |
329 | Pat = compose(verbfixed, prepos("'", "'")), | 330 | Pat = compose(verbfixed, prepos("'", "'")), |
diff --git a/manual/manual.of b/manual/manual.of index bb6ae884..53073a54 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -4058,12 +4058,15 @@ Returns 0 if the userdata does not have that value. | |||
4058 | 4058 | ||
4059 | } | 4059 | } |
4060 | 4060 | ||
4061 | @APIEntry{void lua_setmetatable (lua_State *L, int index);| | 4061 | @APIEntry{int lua_setmetatable (lua_State *L, int index);| |
4062 | @apii{1,0,-} | 4062 | @apii{1,0,-} |
4063 | 4063 | ||
4064 | Pops a table from the stack and | 4064 | Pops a table from the stack and |
4065 | sets it as the new metatable for the value at the given index. | 4065 | sets it as the new metatable for the value at the given index. |
4066 | 4066 | ||
4067 | (For historical reasons, this function returns an @id{int}, | ||
4068 | which now is always 1.) | ||
4069 | |||
4067 | } | 4070 | } |
4068 | 4071 | ||
4069 | @APIEntry{void lua_settable (lua_State *L, int index);| | 4072 | @APIEntry{void lua_settable (lua_State *L, int index);| |
@@ -5782,7 +5785,7 @@ that will be called to close the stream | |||
5782 | when the handle is closed or collected; | 5785 | when the handle is closed or collected; |
5783 | this function receives the file handle as its sole argument and | 5786 | this function receives the file handle as its sole argument and |
5784 | must return either @true, in case of success, | 5787 | must return either @true, in case of success, |
5785 | or @nil plus an error message, in case of error. | 5788 | or a false value plus an error message, in case of error. |
5786 | Once Lua calls this field, | 5789 | Once Lua calls this field, |
5787 | it changes the field value to @id{NULL} | 5790 | it changes the field value to @id{NULL} |
5788 | to signal that the handle is closed. | 5791 | to signal that the handle is closed. |
@@ -5904,6 +5907,14 @@ to its expected parameters. | |||
5904 | For instance, a function documented as @T{foo(arg)} | 5907 | For instance, a function documented as @T{foo(arg)} |
5905 | should not be called without an argument. | 5908 | should not be called without an argument. |
5906 | 5909 | ||
5910 | The notation @fail means a return value representing | ||
5911 | some kind of failure or the absence of a better value to return. | ||
5912 | Currently, @fail is equal to @nil, | ||
5913 | but that may change in future versions. | ||
5914 | The recommendation is to test the success of these functions | ||
5915 | with @T{(not status)}, instead of @T{(status == nil)}. | ||
5916 | |||
5917 | |||
5907 | Currently, Lua has the following standard libraries: | 5918 | Currently, Lua has the following standard libraries: |
5908 | @itemize{ | 5919 | @itemize{ |
5909 | 5920 | ||
@@ -6108,8 +6119,8 @@ with previous results. | |||
6108 | A return of an empty string, @nil, or no value signals the end of the chunk. | 6119 | A return of an empty string, @nil, or no value signals the end of the chunk. |
6109 | 6120 | ||
6110 | If there are no syntactic errors, | 6121 | If there are no syntactic errors, |
6111 | returns the compiled chunk as a function; | 6122 | @id{load} returns the compiled chunk as a function; |
6112 | otherwise, returns @nil plus the error message. | 6123 | otherwise, it returns @fail plus the error message. |
6113 | 6124 | ||
6114 | When you load a main chunk, | 6125 | When you load a main chunk, |
6115 | the resulting function will always have exactly one upvalue, | 6126 | the resulting function will always have exactly one upvalue, |
@@ -6301,7 +6312,7 @@ When called with no @id{base}, | |||
6301 | If the argument is already a number or | 6312 | If the argument is already a number or |
6302 | a string convertible to a number, | 6313 | a string convertible to a number, |
6303 | then @id{tonumber} returns this number; | 6314 | then @id{tonumber} returns this number; |
6304 | otherwise, it returns @nil. | 6315 | otherwise, it returns @fail. |
6305 | 6316 | ||
6306 | The conversion of strings can result in integers or floats, | 6317 | The conversion of strings can result in integers or floats, |
6307 | according to the lexical conventions of Lua @see{lexical}. | 6318 | according to the lexical conventions of Lua @see{lexical}. |
@@ -6315,7 +6326,7 @@ In bases @N{above 10}, the letter @Char{A} (in either upper or lower case) | |||
6315 | @N{represents 10}, @Char{B} @N{represents 11}, and so forth, | 6326 | @N{represents 10}, @Char{B} @N{represents 11}, and so forth, |
6316 | with @Char{Z} representing 35. | 6327 | with @Char{Z} representing 35. |
6317 | If the string @id{e} is not a valid numeral in the given base, | 6328 | If the string @id{e} is not a valid numeral in the given base, |
6318 | the function returns @nil. | 6329 | the function returns @fail. |
6319 | 6330 | ||
6320 | } | 6331 | } |
6321 | 6332 | ||
@@ -6762,7 +6773,7 @@ will try to open the files | |||
6762 | 6773 | ||
6763 | Returns the resulting name of the first file that it can | 6774 | Returns the resulting name of the first file that it can |
6764 | open in read mode (after closing the file), | 6775 | open in read mode (after closing the file), |
6765 | or @nil plus an error message if none succeeds. | 6776 | or @fail plus an error message if none succeeds. |
6766 | (This error message lists all file names it tried to open.) | 6777 | (This error message lists all file names it tried to open.) |
6767 | 6778 | ||
6768 | } | 6779 | } |
@@ -6841,7 +6852,7 @@ Looks for the first match of | |||
6841 | @id{pattern} @see{pm} in the string @id{s}. | 6852 | @id{pattern} @see{pm} in the string @id{s}. |
6842 | If it finds a match, then @id{find} returns the indices @N{of @T{s}} | 6853 | If it finds a match, then @id{find} returns the indices @N{of @T{s}} |
6843 | where this occurrence starts and ends; | 6854 | where this occurrence starts and ends; |
6844 | otherwise, it returns @nil. | 6855 | otherwise, it returns @fail. |
6845 | A third, optional numeric argument @id{init} specifies | 6856 | A third, optional numeric argument @id{init} specifies |
6846 | where to start the search; | 6857 | where to start the search; |
6847 | its default value @N{is 1} and can be negative. | 6858 | its default value @N{is 1} and can be negative. |
@@ -7034,7 +7045,7 @@ Looks for the first @emph{match} of | |||
7034 | the @id{pattern} @see{pm} in the string @id{s}. | 7045 | the @id{pattern} @see{pm} in the string @id{s}. |
7035 | If it finds one, then @id{match} returns | 7046 | If it finds one, then @id{match} returns |
7036 | the captures from the pattern; | 7047 | the captures from the pattern; |
7037 | otherwise it returns @nil. | 7048 | otherwise it returns @fail. |
7038 | If @id{pattern} specifies no captures, | 7049 | If @id{pattern} specifies no captures, |
7039 | then the whole match is returned. | 7050 | then the whole match is returned. |
7040 | A third, optional numeric argument @id{init} specifies | 7051 | A third, optional numeric argument @id{init} specifies |
@@ -7499,7 +7510,7 @@ Returns the number of UTF-8 characters in string @id{s} | |||
7499 | that start between positions @id{i} and @id{j} (both inclusive). | 7510 | that start between positions @id{i} and @id{j} (both inclusive). |
7500 | The default for @id{i} is @num{1} and for @id{j} is @num{-1}. | 7511 | The default for @id{i} is @num{1} and for @id{j} is @num{-1}. |
7501 | If it finds any invalid byte sequence, | 7512 | If it finds any invalid byte sequence, |
7502 | returns a false value plus the position of the first invalid byte. | 7513 | returns @fail plus the position of the first invalid byte. |
7503 | 7514 | ||
7504 | } | 7515 | } |
7505 | 7516 | ||
@@ -7515,7 +7526,7 @@ so that @T{utf8.offset(s, -n)} gets the offset of the | |||
7515 | @id{n}-th character from the end of the string. | 7526 | @id{n}-th character from the end of the string. |
7516 | If the specified character is neither in the subject | 7527 | If the specified character is neither in the subject |
7517 | nor right after its end, | 7528 | nor right after its end, |
7518 | the function returns @nil. | 7529 | the function returns @fail. |
7519 | 7530 | ||
7520 | As a special case, | 7531 | As a special case, |
7521 | when @id{n} is 0 the function returns the start of the encoding | 7532 | when @id{n} is 0 the function returns the start of the encoding |
@@ -7850,7 +7861,7 @@ Returns the tangent of @id{x} (assumed to be in radians). | |||
7850 | 7861 | ||
7851 | If the value @id{x} is convertible to an integer, | 7862 | If the value @id{x} is convertible to an integer, |
7852 | returns that integer. | 7863 | returns that integer. |
7853 | Otherwise, returns @nil. | 7864 | Otherwise, returns @fail. |
7854 | 7865 | ||
7855 | } | 7866 | } |
7856 | 7867 | ||
@@ -7858,7 +7869,7 @@ Otherwise, returns @nil. | |||
7858 | 7869 | ||
7859 | Returns @St{integer} if @id{x} is an integer, | 7870 | Returns @St{integer} if @id{x} is an integer, |
7860 | @St{float} if it is a float, | 7871 | @St{float} if it is a float, |
7861 | or @nil if @id{x} is not a number. | 7872 | or @fail if @id{x} is not a number. |
7862 | 7873 | ||
7863 | } | 7874 | } |
7864 | 7875 | ||
@@ -7897,10 +7908,10 @@ three predefined file handles with their usual meanings from C: | |||
7897 | The I/O library never closes these files. | 7908 | The I/O library never closes these files. |
7898 | 7909 | ||
7899 | Unless otherwise stated, | 7910 | Unless otherwise stated, |
7900 | all I/O functions return @nil on failure, | 7911 | all I/O functions return @fail on failure, |
7901 | plus an error message as a second result and | 7912 | plus an error message as a second result and |
7902 | a system-dependent error code as a third result, | 7913 | a system-dependent error code as a third result, |
7903 | and some value different from @nil on success. | 7914 | and some non-false value on success. |
7904 | On non-POSIX systems, | 7915 | On non-POSIX systems, |
7905 | the computation of the error message and error code | 7916 | the computation of the error message and error code |
7906 | in case of errors | 7917 | in case of errors |
@@ -8021,7 +8032,7 @@ and it is automatically removed when the program ends. | |||
8021 | Checks whether @id{obj} is a valid file handle. | 8032 | Checks whether @id{obj} is a valid file handle. |
8022 | Returns the string @T{"file"} if @id{obj} is an open file handle, | 8033 | Returns the string @T{"file"} if @id{obj} is an open file handle, |
8023 | @T{"closed file"} if @id{obj} is a closed file handle, | 8034 | @T{"closed file"} if @id{obj} is a closed file handle, |
8024 | or @nil if @id{obj} is not a file handle. | 8035 | or @fail if @id{obj} is not a file handle. |
8025 | 8036 | ||
8026 | } | 8037 | } |
8027 | 8038 | ||
@@ -8075,7 +8086,7 @@ Reads the file @id{file}, | |||
8075 | according to the given formats, which specify what to read. | 8086 | according to the given formats, which specify what to read. |
8076 | For each format, | 8087 | For each format, |
8077 | the function returns a string or a number with the characters read, | 8088 | the function returns a string or a number with the characters read, |
8078 | or @nil if it cannot read data with the specified format. | 8089 | or @fail if it cannot read data with the specified format. |
8079 | (In this latter case, | 8090 | (In this latter case, |
8080 | the function does not read subsequent formats.) | 8091 | the function does not read subsequent formats.) |
8081 | When called without arguments, | 8092 | When called without arguments, |
@@ -8094,31 +8105,32 @@ is a valid prefix for a numeral; | |||
8094 | if that prefix does not form a valid numeral | 8105 | if that prefix does not form a valid numeral |
8095 | (e.g., an empty string, @St{0x}, or @St{3.4e-}) | 8106 | (e.g., an empty string, @St{0x}, or @St{3.4e-}) |
8096 | or it is too long (more than 200 characters), | 8107 | or it is too long (more than 200 characters), |
8097 | it is discarded and the format returns @nil. | 8108 | it is discarded and the format returns @fail. |
8098 | } | 8109 | } |
8099 | 8110 | ||
8100 | @item{@St{a}| | 8111 | @item{@St{a}| |
8101 | reads the whole file, starting at the current position. | 8112 | reads the whole file, starting at the current position. |
8102 | On end of file, it returns the empty string. | 8113 | On end of file, it returns the empty string; |
8114 | this format never fails. | ||
8103 | } | 8115 | } |
8104 | 8116 | ||
8105 | @item{@St{l}| | 8117 | @item{@St{l}| |
8106 | reads the next line skipping the end of line, | 8118 | reads the next line skipping the end of line, |
8107 | returning @nil on end of file. | 8119 | returning @fail on end of file. |
8108 | This is the default format. | 8120 | This is the default format. |
8109 | } | 8121 | } |
8110 | 8122 | ||
8111 | @item{@St{L}| | 8123 | @item{@St{L}| |
8112 | reads the next line keeping the end-of-line character (if present), | 8124 | reads the next line keeping the end-of-line character (if present), |
8113 | returning @nil on end of file. | 8125 | returning @fail on end of file. |
8114 | } | 8126 | } |
8115 | 8127 | ||
8116 | @item{@emph{number}| | 8128 | @item{@emph{number}| |
8117 | reads a string with up to this number of bytes, | 8129 | reads a string with up to this number of bytes, |
8118 | returning @nil on end of file. | 8130 | returning @fail on end of file. |
8119 | If @id{number} is zero, | 8131 | If @id{number} is zero, |
8120 | it reads nothing and returns an empty string, | 8132 | it reads nothing and returns an empty string, |
8121 | or @nil on end of file. | 8133 | or @fail on end of file. |
8122 | } | 8134 | } |
8123 | 8135 | ||
8124 | } | 8136 | } |
@@ -8139,7 +8151,7 @@ specified by the string @id{whence}, as follows: | |||
8139 | } | 8151 | } |
8140 | In case of success, @id{seek} returns the final file position, | 8152 | In case of success, @id{seek} returns the final file position, |
8141 | measured in bytes from the beginning of the file. | 8153 | measured in bytes from the beginning of the file. |
8142 | If @id{seek} fails, it returns @nil, | 8154 | If @id{seek} fails, it returns @fail, |
8143 | plus a string describing the error. | 8155 | plus a string describing the error. |
8144 | 8156 | ||
8145 | The default value for @id{whence} is @T{"cur"}, | 8157 | The default value for @id{whence} is @T{"cur"}, |
@@ -8179,7 +8191,6 @@ Writes the value of each of its arguments to @id{file}. | |||
8179 | The arguments must be strings or numbers. | 8191 | The arguments must be strings or numbers. |
8180 | 8192 | ||
8181 | In case of success, this function returns @id{file}. | 8193 | In case of success, this function returns @id{file}. |
8182 | Otherwise it returns @nil plus a string describing the error. | ||
8183 | 8194 | ||
8184 | } | 8195 | } |
8185 | 8196 | ||
@@ -8251,7 +8262,7 @@ This function is equivalent to the @ANSI{system}. | |||
8251 | It passes @id{command} to be executed by an operating system shell. | 8262 | It passes @id{command} to be executed by an operating system shell. |
8252 | Its first result is @true | 8263 | Its first result is @true |
8253 | if the command terminated successfully, | 8264 | if the command terminated successfully, |
8254 | or @nil otherwise. | 8265 | or @fail otherwise. |
8255 | After this first result | 8266 | After this first result |
8256 | the function returns a string plus a number, | 8267 | the function returns a string plus a number, |
8257 | as follows: | 8268 | as follows: |
@@ -8293,7 +8304,7 @@ closes the Lua state before exiting. | |||
8293 | @LibEntry{os.getenv (varname)| | 8304 | @LibEntry{os.getenv (varname)| |
8294 | 8305 | ||
8295 | Returns the value of the process environment variable @id{varname}, | 8306 | Returns the value of the process environment variable @id{varname}, |
8296 | or @nil if the variable is not defined. | 8307 | or @fail if the variable is not defined. |
8297 | 8308 | ||
8298 | } | 8309 | } |
8299 | 8310 | ||
@@ -8301,7 +8312,7 @@ or @nil if the variable is not defined. | |||
8301 | 8312 | ||
8302 | Deletes the file (or empty directory, on @x{POSIX} systems) | 8313 | Deletes the file (or empty directory, on @x{POSIX} systems) |
8303 | with the given name. | 8314 | with the given name. |
8304 | If this function fails, it returns @nil, | 8315 | If this function fails, it returns @fail |
8305 | plus a string describing the error and the error code. | 8316 | plus a string describing the error and the error code. |
8306 | Otherwise, it returns true. | 8317 | Otherwise, it returns true. |
8307 | 8318 | ||
@@ -8310,7 +8321,7 @@ Otherwise, it returns true. | |||
8310 | @LibEntry{os.rename (oldname, newname)| | 8321 | @LibEntry{os.rename (oldname, newname)| |
8311 | 8322 | ||
8312 | Renames the file or directory named @id{oldname} to @id{newname}. | 8323 | Renames the file or directory named @id{oldname} to @id{newname}. |
8313 | If this function fails, it returns @nil, | 8324 | If this function fails, it returns @fail, |
8314 | plus a string describing the error and the error code. | 8325 | plus a string describing the error and the error code. |
8315 | Otherwise, it returns true. | 8326 | Otherwise, it returns true. |
8316 | 8327 | ||
@@ -8325,7 +8336,7 @@ Sets the current locale of the program. | |||
8325 | @T{"monetary"}, @T{"numeric"}, or @T{"time"}; | 8336 | @T{"monetary"}, @T{"numeric"}, or @T{"time"}; |
8326 | the default category is @T{"all"}. | 8337 | the default category is @T{"all"}. |
8327 | The function returns the name of the new locale, | 8338 | The function returns the name of the new locale, |
8328 | or @nil if the request cannot be honored. | 8339 | or @fail if the request cannot be honored. |
8329 | 8340 | ||
8330 | If @id{locale} is the empty string, | 8341 | If @id{locale} is the empty string, |
8331 | the current locale is set to an implementation-defined native locale. | 8342 | the current locale is set to an implementation-defined native locale. |
@@ -8444,6 +8455,8 @@ the current hook function, the current hook mask, | |||
8444 | and the current hook count, | 8455 | and the current hook count, |
8445 | as set by the @Lid{debug.sethook} function. | 8456 | as set by the @Lid{debug.sethook} function. |
8446 | 8457 | ||
8458 | Returns @fail if there is no active hook. | ||
8459 | |||
8447 | } | 8460 | } |
8448 | 8461 | ||
8449 | @LibEntry{debug.getinfo ([thread,] f [, what])| | 8462 | @LibEntry{debug.getinfo ([thread,] f [, what])| |
@@ -8458,7 +8471,7 @@ of the given thread: | |||
8458 | (except for tail calls, which do not count on the stack); | 8471 | (except for tail calls, which do not count on the stack); |
8459 | and so on. | 8472 | and so on. |
8460 | If @id{f} is a number greater than the number of active functions, | 8473 | If @id{f} is a number greater than the number of active functions, |
8461 | then @id{getinfo} returns @nil. | 8474 | then @id{getinfo} returns @fail. |
8462 | 8475 | ||
8463 | The returned table can contain all the fields returned by @Lid{lua_getinfo}, | 8476 | The returned table can contain all the fields returned by @Lid{lua_getinfo}, |
8464 | with the string @id{what} describing which fields to fill in. | 8477 | with the string @id{what} describing which fields to fill in. |
@@ -8496,7 +8509,8 @@ Compile-time constants may not appear in this listing, | |||
8496 | if they were optimized away by the compiler. | 8509 | if they were optimized away by the compiler. |
8497 | Negative indices refer to vararg arguments; | 8510 | Negative indices refer to vararg arguments; |
8498 | @num{-1} is the first vararg argument. | 8511 | @num{-1} is the first vararg argument. |
8499 | The function returns @nil if there is no variable with the given index, | 8512 | The function returns @fail |
8513 | if there is no variable with the given index, | ||
8500 | and raises an error when called with a level out of range. | 8514 | and raises an error when called with a level out of range. |
8501 | (You can call @Lid{debug.getinfo} to check whether the level is valid.) | 8515 | (You can call @Lid{debug.getinfo} to check whether the level is valid.) |
8502 | 8516 | ||
@@ -8527,7 +8541,8 @@ Returns the registry table @see{registry}. | |||
8527 | 8541 | ||
8528 | This function returns the name and the value of the upvalue | 8542 | This function returns the name and the value of the upvalue |
8529 | with index @id{up} of the function @id{f}. | 8543 | with index @id{up} of the function @id{f}. |
8530 | The function returns @nil if there is no upvalue with the given index. | 8544 | The function returns @fail |
8545 | if there is no upvalue with the given index. | ||
8531 | 8546 | ||
8532 | (For Lua functions, | 8547 | (For Lua functions, |
8533 | upvalues are the external local variables that the function uses, | 8548 | upvalues are the external local variables that the function uses, |
@@ -8615,7 +8630,7 @@ and @N{level 1} is the hook function.) | |||
8615 | 8630 | ||
8616 | This function assigns the value @id{value} to the local variable | 8631 | This function assigns the value @id{value} to the local variable |
8617 | with index @id{local} of the function at level @id{level} of the stack. | 8632 | with index @id{local} of the function at level @id{level} of the stack. |
8618 | The function returns @nil if there is no local | 8633 | The function returns @fail if there is no local |
8619 | variable with the given index, | 8634 | variable with the given index, |
8620 | and raises an error when called with a @id{level} out of range. | 8635 | and raises an error when called with a @id{level} out of range. |
8621 | (You can call @id{getinfo} to check whether the level is valid.) | 8636 | (You can call @id{getinfo} to check whether the level is valid.) |
@@ -8638,7 +8653,7 @@ Returns @id{value}. | |||
8638 | 8653 | ||
8639 | This function assigns the value @id{value} to the upvalue | 8654 | This function assigns the value @id{value} to the upvalue |
8640 | with index @id{up} of the function @id{f}. | 8655 | with index @id{up} of the function @id{f}. |
8641 | The function returns @nil if there is no upvalue | 8656 | The function returns @fail if there is no upvalue |
8642 | with the given index. | 8657 | with the given index. |
8643 | Otherwise, it returns the name of the upvalue. | 8658 | Otherwise, it returns the name of the upvalue. |
8644 | 8659 | ||
@@ -8653,7 +8668,7 @@ the @id{n}-th user value associated to the given @id{udata}. | |||
8653 | @id{udata} must be a full userdata. | 8668 | @id{udata} must be a full userdata. |
8654 | 8669 | ||
8655 | Returns @id{udata}, | 8670 | Returns @id{udata}, |
8656 | or @nil if the userdata does not have that value. | 8671 | or @fail if the userdata does not have that value. |
8657 | 8672 | ||
8658 | } | 8673 | } |
8659 | 8674 | ||