diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-06-04 11:22:21 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2019-06-04 11:22:21 -0300 |
commit | 14edd364c3abcb758e74c68a2bdd4ddaeefdae2a (patch) | |
tree | 9350100ad9b962cae6e6406b4d7462e1443bc137 /manual | |
parent | 514d94274853e6f0dfd6bb2ffa2e1fc64db926dd (diff) | |
download | lua-14edd364c3abcb758e74c68a2bdd4ddaeefdae2a.tar.gz lua-14edd364c3abcb758e74c68a2bdd4ddaeefdae2a.tar.bz2 lua-14edd364c3abcb758e74c68a2bdd4ddaeefdae2a.zip |
Function 'warn' is vararg
Instead of a 'tocont' flag, the function 'warn' in Lua now receives all
message pieces as multiple arguments in a single call. Besides being
simpler to use, this implementation ensures that Lua code cannot create
unfinished warnings.
Diffstat (limited to 'manual')
-rw-r--r-- | manual/manual.of | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/manual/manual.of b/manual/manual.of index eb4e671d..4c9c20b2 100644 --- a/manual/manual.of +++ b/manual/manual.of | |||
@@ -6326,12 +6326,10 @@ The current value of this variable is @St{Lua 5.4}. | |||
6326 | 6326 | ||
6327 | } | 6327 | } |
6328 | 6328 | ||
6329 | @LibEntry{warn (message [, tocont])| | 6329 | @LibEntry{warn (msg1, @Cdots)| |
6330 | 6330 | ||
6331 | Emits a warning with the given message. | 6331 | Emits a warning with a message composed by the concatenation |
6332 | A message in a call with @id{tocont} true should be | 6332 | of all its arguments (which should be strings). |
6333 | continued in another call to this function. | ||
6334 | The default for @id{tocont} is false. | ||
6335 | 6333 | ||
6336 | } | 6334 | } |
6337 | 6335 | ||