aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-13 17:00:51 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2002-08-13 17:00:51 -0300
commit94b5ad31f4e6bd0a93b8b156e7274e8aae7e2535 (patch)
tree15fd11669163f1465a46af71cc5fea65f7801292
parent90d26b9266154d9afe8eda2075a221c64e8f2cd5 (diff)
downloadlua-94b5ad31f4e6bd0a93b8b156e7274e8aae7e2535.tar.gz
lua-94b5ad31f4e6bd0a93b8b156e7274e8aae7e2535.tar.bz2
lua-94b5ad31f4e6bd0a93b8b156e7274e8aae7e2535.zip
details
-rw-r--r--manual.tex20
1 files changed, 11 insertions, 9 deletions
diff --git a/manual.tex b/manual.tex
index f595b2cf..eba2249a 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,4 +1,5 @@
1% $Id: manual.tex,v 1.59 2002/08/12 17:43:35 roberto Exp roberto $ 1% $Id: manual.tex,v 1.60 2002/08/13 19:44:47 roberto Exp roberto $
2%{[(
2 3
3\documentclass[11pt,twoside,draft]{article} 4\documentclass[11pt,twoside,draft]{article}
4\usepackage{fullpage} 5\usepackage{fullpage}
@@ -133,7 +134,7 @@ Waldemar Celes
133\tecgraf\ --- Computer Science Department --- PUC-Rio 134\tecgraf\ --- Computer Science Department --- PUC-Rio
134} 135}
135 136
136%\date{{\small \tt\$Date: 2002/08/12 17:43:35 $ $}} 137%\date{{\small \tt\$Date: 2002/08/13 19:44:47 $ $}}
137 138
138\maketitle 139\maketitle
139 140
@@ -574,7 +575,7 @@ may contain nested \verb|[[| $\ldots$ \verb|]]| pairs,
574and do not interpret escape sequences. 575and do not interpret escape sequences.
575For convenience, 576For convenience,
576when the opening \verb|[[| is immediately followed by a newline, 577when the opening \verb|[[| is immediately followed by a newline,
577the newline is not included in the string. 578the newline is not included in the string. % ]]
578That form is specially convenient for 579That form is specially convenient for
579writing strings that contain program pieces or 580writing strings that contain program pieces or
580other quoted strings. 581other quoted strings.
@@ -583,11 +584,11 @@ As an example, in a system using ASCII
583newline is coded as~10, and `\verb|1|' is coded as~49), 584newline is coded as~10, and `\verb|1|' is coded as~49),
584the four literals below denote the same string: 585the four literals below denote the same string:
585\begin{verbatim} 586\begin{verbatim}
586 1) "alo\n123\"" 587 (1) "alo\n123\""
587 2) '\97lo\10\04923"' 588 (2) '\97lo\10\04923"'
588 3) [[alo 589 (3) [[alo
589 123"]] 590 123"]]
590 4) [[ 591 (4) [[
591 alo 592 alo
592 123"]] 593 123"]]
593\end{verbatim} 594\end{verbatim}
@@ -3575,7 +3576,7 @@ are interfaces to the simple random generator functions
3575(No guarantees can be given for their statistical properties.) 3576(No guarantees can be given for their statistical properties.)
3576When called without arguments, 3577When called without arguments,
3577\verb|math.random| returns a pseudo-random real number 3578\verb|math.random| returns a pseudo-random real number
3578in the range \Math{[0,1)}. 3579in the range \Math{[0,1)}. %]
3579When called with a number \Math{n}, 3580When called with a number \Math{n},
3580\verb|math.random| returns a pseudo-random integer in the range \Math{[1,n]}. 3581\verb|math.random| returns a pseudo-random integer in the range \Math{[1,n]}.
3581When called with two arguments, \Math{l} and \Math{u}, 3582When called with two arguments, \Math{l} and \Math{u},
@@ -4111,7 +4112,7 @@ Function calls written between parentheses result in exactly one value.
4111 4112
4112\item 4113\item
4113A function call as the last expression in a list constructor 4114A function call as the last expression in a list constructor
4114(like \verb|{a,b,f()}}|) has all its return values inserted in the list. 4115(like \verb|{a,b,f()}|) has all its return values inserted in the list.
4115 4116
4116\item 4117\item
4117The precedence of \rwd{or} is smaller than the precedence of \rwd{and}. 4118The precedence of \rwd{or} is smaller than the precedence of \rwd{and}.
@@ -4279,3 +4280,4 @@ enclosed in single quotes.
4279\input{manual.id} 4280\input{manual.id}
4280 4281
4281\end{document} 4282\end{document}
4283%)]}