diff options
author | Martin Odersky <odersky@gmail.com> | 2003-11-24 09:59:31 +0000 |
---|---|---|
committer | Martin Odersky <odersky@gmail.com> | 2003-11-24 09:59:31 +0000 |
commit | b29d2c52345930702458247763e073c553f90d24 (patch) | |
tree | 377993d34a627f54960d35e61d9694a612a58d54 /doc/reference | |
parent | ed02ff19e9b7c81622fa8047039cbc6e5c454865 (diff) | |
download | scala-b29d2c52345930702458247763e073c553f90d24.tar.gz scala-b29d2c52345930702458247763e073c553f90d24.tar.bz2 scala-b29d2c52345930702458247763e073c553f90d24.zip |
*** empty log message ***
Diffstat (limited to 'doc/reference')
-rw-r--r-- | doc/reference/ScalaByExample.tex | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/reference/ScalaByExample.tex b/doc/reference/ScalaByExample.tex index 55065ceb9c..05447bc08b 100644 --- a/doc/reference/ScalaByExample.tex +++ b/doc/reference/ScalaByExample.tex @@ -1200,7 +1200,7 @@ covered Scala's language elements to express expressions and types comprising of primitive data and functions. The context-free syntax of these language elements is given below in extended Backus-Naur form, where `\code{|}' denotes alternatives, \code{[...]} denotes -option (0 or 1 occurrences), and \code{{...}} denotes repetition (0 or +option (0 or 1 occurrences), and \lstinline@{...}@ denotes repetition (0 or more occurrences). \subsection*{Characters} @@ -1320,7 +1320,7 @@ operator applications, such as \code{-x} or \code{y + x}, \item conditionals, such as \code{if (x < 0) -x else x}, \item -blocks, such as \code{{ val x = abs(y) ; x * 2 }}, +blocks, such as \lstinline@{ val x = abs(y) ; x * 2 }@, \item anonymous functions, such as \code{x => x + 1} or \code{(x: int, y: int) => x + y}. \end{itemize} @@ -2572,7 +2572,7 @@ All such operators are treated as methods of their right operand. E.g., Note, however, that operands of a binary operation are in each case evaluated from left to right. So, if \code{D} and \code{E} are expressions with possible side-effects, \code{D :: E} is translated to -\code{{val x = D; E.::(x)}} in order to maintain the left-to-right +\lstinline@{val x = D; E.::(x)}@ in order to maintain the left-to-right order of operand evaluation. Another difference between operators ending in a `\code{:}' and other |