From c33b1728aeb7dfeec4013562660e07d32697aa6b Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Thu, 18 Jun 2020 11:07:27 -0300 Subject: Details Added as incompatibility, in the manual, the extra return of 'io.lines'. --- manual/manual.of | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'manual') diff --git a/manual/manual.of b/manual/manual.of index 4d1794fc..9c275d15 100644 --- a/manual/manual.of +++ b/manual/manual.of @@ -9116,6 +9116,17 @@ of the function @Lid{collectgarbage} are deprecated. You should use the new option @St{incremental} to set them. } +@item{ +The function @Lid{io.lines} now returns four values, +instead of just one. +That can be a problem when it is used as the sole +argument to another function that has optional parameters, +such as in @T{load(io.lines(filename, "L"))}. +To fix that issue, +you can wrap the call into parentheses, +to adjust its number of results to one. +} + } } -- cgit v1.2.3-55-g6feb