diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-10 11:09:45 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1999-03-10 11:09:45 -0300 |
commit | 26794616374fee54532d0030ae006abb77dfb7ba (patch) | |
tree | ebc4595695eb616e66b4f63779404e8ea6644b48 /manual.tex | |
parent | 0870a2d1d8a1434eecae1923886ba219c4e699c7 (diff) | |
download | lua-26794616374fee54532d0030ae006abb77dfb7ba.tar.gz lua-26794616374fee54532d0030ae006abb77dfb7ba.tar.bz2 lua-26794616374fee54532d0030ae006abb77dfb7ba.zip |
no more assignment expressions (they don't fit in Lua...)
Diffstat (limited to 'manual.tex')
-rw-r--r-- | manual.tex | 12 |
1 files changed, 2 insertions, 10 deletions
@@ -1,4 +1,4 @@ | |||
1 | % $Id: manual.tex,v 1.24 1999/02/25 19:13:56 roberto Exp roberto $ | 1 | % $Id: manual.tex,v 1.25 1999/03/04 21:23:39 roberto Exp roberto $ |
2 | 2 | ||
3 | \documentclass[11pt]{article} | 3 | \documentclass[11pt]{article} |
4 | \usepackage{fullpage,bnf} | 4 | \usepackage{fullpage,bnf} |
@@ -41,7 +41,7 @@ Waldemar Celes | |||
41 | \tecgraf\ --- Computer Science Department --- PUC-Rio | 41 | \tecgraf\ --- Computer Science Department --- PUC-Rio |
42 | } | 42 | } |
43 | 43 | ||
44 | %\date{\small \verb$Date: 1999/02/25 19:13:56 $} | 44 | %\date{\small \verb$Date: 1999/03/04 21:23:39 $} |
45 | 45 | ||
46 | \maketitle | 46 | \maketitle |
47 | 47 | ||
@@ -697,14 +697,6 @@ according to its condition. | |||
697 | Its final value is the value of the chosen expression. | 697 | Its final value is the value of the chosen expression. |
698 | An absent else-part is equivalent to \verb|else nil|. | 698 | An absent else-part is equivalent to \verb|else nil|. |
699 | 699 | ||
700 | \subsubsection{Assignment Expressions} | ||
701 | \begin{Produc} | ||
702 | \produc{exp}{\ter{(} varlist1 \ter{=} explist1 \ter{)}} | ||
703 | \end{Produc}% | ||
704 | An \Index{assignment expression} executes a multiple assignment, | ||
705 | and results in the final value of its first right hand expression | ||
706 | (that is, the value assigned to the first variable in the variable list). | ||
707 | |||
708 | \subsubsection{Table Constructors} \label{tableconstructor} | 700 | \subsubsection{Table Constructors} \label{tableconstructor} |
709 | Table \Index{constructors} are expressions that create tables; | 701 | Table \Index{constructors} are expressions that create tables; |
710 | every time a constructor is evaluated, a new table is created. | 702 | every time a constructor is evaluated, a new table is created. |