diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-20 14:21:20 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2000-09-20 14:21:20 -0300 |
commit | ab7aceb9805e938b937bcf7e66e4160b42fbefaf (patch) | |
tree | 1419aa353c2eb4cb741b0184e6d6a9487384503a | |
parent | 72b12e095674fade39fb6e50fdd880176c38d2d9 (diff) | |
download | lua-ab7aceb9805e938b937bcf7e66e4160b42fbefaf.tar.gz lua-ab7aceb9805e938b937bcf7e66e4160b42fbefaf.tar.bz2 lua-ab7aceb9805e938b937bcf7e66e4160b42fbefaf.zip |
Tochange
-rw-r--r-- | manual.tex | 14 |
1 files changed, 9 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | % $Id: manual.tex,v 1.42 2000/08/30 18:58:46 roberto Exp roberto $ | 1 | % $Id: manual.tex,v 1.43 2000/09/18 19:41:16 roberto Exp roberto $ |
2 | 2 | ||
3 | \documentclass[11pt]{article} | 3 | \documentclass[11pt]{article} |
4 | \usepackage{fullpage,bnf} | 4 | \usepackage{fullpage,bnf} |
@@ -21,6 +21,8 @@ | |||
21 | \newcommand{\Def}[1]{\emph{#1}\index{#1}} | 21 | \newcommand{\Def}[1]{\emph{#1}\index{#1}} |
22 | \newcommand{\Deffunc}[1]{\index{#1}} | 22 | \newcommand{\Deffunc}[1]{\index{#1}} |
23 | 23 | ||
24 | \newcommand{\Tochange}[1]{(#1 may change in the final 4.0 version.)} | ||
25 | |||
24 | \newcommand{\ff}{$\bullet$\ } | 26 | \newcommand{\ff}{$\bullet$\ } |
25 | 27 | ||
26 | \newcommand{\Version}{4.0} | 28 | \newcommand{\Version}{4.0} |
@@ -129,7 +131,7 @@ Waldemar Celes | |||
129 | \tecgraf\ --- Computer Science Department --- PUC-Rio | 131 | \tecgraf\ --- Computer Science Department --- PUC-Rio |
130 | } | 132 | } |
131 | 133 | ||
132 | \date{{\small \tt\$Date: 2000/08/30 18:58:46 $ $}} | 134 | \date{{\small \tt\$Date: 2000/09/18 19:41:16 $ $}} |
133 | 135 | ||
134 | \maketitle | 136 | \maketitle |
135 | 137 | ||
@@ -1522,7 +1524,7 @@ Lua does the equivalent of the following function: | |||
1522 | \end{verbatim} | 1524 | \end{verbatim} |
1523 | Moreover, at the end of a garbage collection cycle, | 1525 | Moreover, at the end of a garbage collection cycle, |
1524 | Lua does the equivalent of the call \verb|gc_event(nil)|. | 1526 | Lua does the equivalent of the call \verb|gc_event(nil)|. |
1525 | (This may change in the final 4.0 version.) | 1527 | \Tochange{This} |
1526 | 1528 | ||
1527 | \end{description} | 1529 | \end{description} |
1528 | 1530 | ||
@@ -1827,6 +1829,7 @@ after that number of new objects have been created. | |||
1827 | If \verb|limit| is 0, | 1829 | If \verb|limit| is 0, |
1828 | then Lua uses an adaptive heuristic to set this limit. | 1830 | then Lua uses an adaptive heuristic to set this limit. |
1829 | 1831 | ||
1832 | \Tochange{This function} | ||
1830 | 1833 | ||
1831 | \subsection{Userdata and Tags}\label{C-tags} | 1834 | \subsection{Userdata and Tags}\label{C-tags} |
1832 | 1835 | ||
@@ -2251,7 +2254,6 @@ in the official Lua distribution. | |||
2251 | 2254 | ||
2252 | \subsection{References to Lua Objects} | 2255 | \subsection{References to Lua Objects} |
2253 | 2256 | ||
2254 | As noted in \See{GC}, Lua values are volatile. | ||
2255 | If the C~code needs to keep a Lua value | 2257 | If the C~code needs to keep a Lua value |
2256 | outside the life span of a C~function, | 2258 | outside the life span of a C~function, |
2257 | then it must create a \Def{reference} to the value. | 2259 | then it must create a \Def{reference} to the value. |
@@ -2376,6 +2378,8 @@ then Lua uses an adaptive algorithm to set this limit. | |||
2376 | \verb|collectgarbage| is equivalent to | 2378 | \verb|collectgarbage| is equivalent to |
2377 | the API function \verb|lua_collectgarbage|. | 2379 | the API function \verb|lua_collectgarbage|. |
2378 | 2380 | ||
2381 | \Tochange{This function} | ||
2382 | |||
2379 | \subsubsection*{\ff \T{copytagmethods (tagto, tagfrom)}} | 2383 | \subsubsection*{\ff \T{copytagmethods (tagto, tagfrom)}} |
2380 | \Deffunc{copytagmethods} | 2384 | \Deffunc{copytagmethods} |
2381 | Copies all tag methods from one tag to another; | 2385 | Copies all tag methods from one tag to another; |
@@ -3387,7 +3391,7 @@ If the function was defined in a string, | |||
3387 | if the function was defined in a file, | 3391 | if the function was defined in a file, |
3388 | \verb|source| starts with a \verb|@| followed by the file name. | 3392 | \verb|source| starts with a \verb|@| followed by the file name. |
3389 | 3393 | ||
3390 | \item[short_src] | 3394 | \item[short\_src] |
3391 | A ``printable'' version of \verb|source|, to be used in error messages. | 3395 | A ``printable'' version of \verb|source|, to be used in error messages. |
3392 | 3396 | ||
3393 | \item[linedefined] | 3397 | \item[linedefined] |