From 14edd364c3abcb758e74c68a2bdd4ddaeefdae2a Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Tue, 4 Jun 2019 11:22:21 -0300 Subject: 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. --- manual/manual.of | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'manual') 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}. } -@LibEntry{warn (message [, tocont])| +@LibEntry{warn (msg1, @Cdots)| -Emits a warning with the given message. -A message in a call with @id{tocont} true should be -continued in another call to this function. -The default for @id{tocont} is false. +Emits a warning with a message composed by the concatenation +of all its arguments (which should be strings). } -- cgit v1.2.3-55-g6feb