Added as incompatibility, in the manual, the extra return of 'io.lines'.
This commit is contained in:
Roberto Ierusalimschy committed 2020-06-18 11:07:27 -03:00
1 parent a304199836
commit c33b1728ae
2 files changed
+13 -2

No files matched your search

+11
View File
@@ -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.
}
}
}