diff options
Diffstat (limited to 'manual.tex')
-rw-r--r-- | manual.tex | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -1,4 +1,4 @@ | |||
1 | % $Id: manual.tex,v 2.6 1997/06/26 20:39:10 roberto Exp roberto $ | 1 | % $Id: manual.tex,v 2.7 1997/06/27 18:39:34 roberto Exp roberto $ |
2 | 2 | ||
3 | \documentstyle[fullpage,11pt,bnf]{article} | 3 | \documentstyle[fullpage,11pt,bnf]{article} |
4 | 4 | ||
@@ -38,7 +38,7 @@ Waldemar Celes | |||
38 | \tecgraf\ --- Computer Science Department --- PUC-Rio | 38 | \tecgraf\ --- Computer Science Department --- PUC-Rio |
39 | } | 39 | } |
40 | 40 | ||
41 | \date{\small \verb$Date: 1997/06/26 20:39:10 $} | 41 | \date{\small \verb$Date: 1997/06/27 18:39:34 $} |
42 | 42 | ||
43 | \maketitle | 43 | \maketitle |
44 | 44 | ||
@@ -263,7 +263,7 @@ values of type userdata and table can have | |||
263 | as many different tags as needed \see{tag-method}. | 263 | as many different tags as needed \see{tag-method}. |
264 | Tags are created with the function \verb|newtag|, | 264 | Tags are created with the function \verb|newtag|, |
265 | and the function \verb|tag| returns the tag of a given value. | 265 | and the function \verb|tag| returns the tag of a given value. |
266 | To change the tag of a given userdata or table, | 266 | To change the tag of a given table, |
267 | there is the function \verb|settag| \see{pdf-newtag}. | 267 | there is the function \verb|settag| \see{pdf-newtag}. |
268 | 268 | ||
269 | 269 | ||
@@ -1723,12 +1723,12 @@ This function allows Lua to test the tag of a value \see{TypesSec}. | |||
1723 | It receives one argument, and returns its tag (a number). | 1723 | It receives one argument, and returns its tag (a number). |
1724 | \verb|tag| is equivalent to the API function \verb|lua_tag|. | 1724 | \verb|tag| is equivalent to the API function \verb|lua_tag|. |
1725 | 1725 | ||
1726 | \subsubsection*{\ff {\tt settag (o, tag)}}\Deffunc{settag} | 1726 | \subsubsection*{\ff {\tt settag (t, tag)}}\Deffunc{settag} |
1727 | This function sets the tag of a given object \see{TypesSec}. | 1727 | This function sets the tag of a given table \see{TypesSec}. |
1728 | The object \verb|o| must be a userdata or a table. | ||
1729 | \verb|tag| must be a value created with \verb|newtag| | 1728 | \verb|tag| must be a value created with \verb|newtag| |
1730 | \see{pdf-newtag}. | 1729 | \see{pdf-newtag}. |
1731 | \verb|settag| is equivalent to the API function \verb|lua_settag|. | 1730 | For security reasons, |
1731 | it is impossible to change the tag of a userdata from Lua. | ||
1732 | 1732 | ||
1733 | \subsubsection*{\ff {\tt assert (v)}}\Deffunc{assert} | 1733 | \subsubsection*{\ff {\tt assert (v)}}\Deffunc{assert} |
1734 | This function issues an {\em ``assertion failed!''} error | 1734 | This function issues an {\em ``assertion failed!''} error |