aboutsummaryrefslogtreecommitdiff
path: root/manual
diff options
context:
space:
mode:
Diffstat (limited to 'manual')
-rw-r--r--manual/manual.of13
1 files changed, 11 insertions, 2 deletions
diff --git a/manual/manual.of b/manual/manual.of
index 9f1ef631..6da2e494 100644
--- a/manual/manual.of
+++ b/manual/manual.of
@@ -6143,8 +6143,10 @@ In case of any error, @id{pcall} returns @false plus the error object.
6143@LibEntry{print (@Cdots)| 6143@LibEntry{print (@Cdots)|
6144Receives any number of arguments 6144Receives any number of arguments
6145and prints their values to @id{stdout}, 6145and prints their values to @id{stdout},
6146using the @Lid{tostring} function to convert each argument to a string. 6146converting each argument to a string
6147@id{print} is not intended for formatted output, 6147following the same rules of @Lid{tostring}.
6148
6149The function @id{print} is not intended for formatted output,
6148but only as a quick way to show a value, 6150but only as a quick way to show a value,
6149for instance for debugging. 6151for instance for debugging.
6150For complete control over the output, 6152For complete control over the output,
@@ -8773,6 +8775,13 @@ like any other error when calling a finalizer.)
8773@itemize{ 8775@itemize{
8774 8776
8775@item{ 8777@item{
8778The function @Lid{print} does not call @Lid{tostring}
8779to format its arguments;
8780instead, it has this functionality hardwired.
8781You should use @id{__tostring} to modify how values are printed.
8782}
8783
8784@item{
8776The pseudo-random number generator used by the function @Lid{math.random} 8785The pseudo-random number generator used by the function @Lid{math.random}
8777now starts with a somewhat random seed. 8786now starts with a somewhat random seed.
8778Moreover, it uses a different algorithm. 8787Moreover, it uses a different algorithm.