summaryrefslogtreecommitdiff
path: root/manual.tex
diff options
context:
space:
mode:
Diffstat (limited to 'manual.tex')
-rw-r--r--manual.tex14
1 files changed, 7 insertions, 7 deletions
diff --git a/manual.tex b/manual.tex
index 62fb7fe5..747a3e82 100644
--- a/manual.tex
+++ b/manual.tex
@@ -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
263as many different tags as needed \see{tag-method}. 263as many different tags as needed \see{tag-method}.
264Tags are created with the function \verb|newtag|, 264Tags are created with the function \verb|newtag|,
265and the function \verb|tag| returns the tag of a given value. 265and the function \verb|tag| returns the tag of a given value.
266To change the tag of a given userdata or table, 266To change the tag of a given table,
267there is the function \verb|settag| \see{pdf-newtag}. 267there 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}.
1723It receives one argument, and returns its tag (a number). 1723It 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}
1727This function sets the tag of a given object \see{TypesSec}. 1727This function sets the tag of a given table \see{TypesSec}.
1728The 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|. 1730For security reasons,
1731it 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}
1734This function issues an {\em ``assertion failed!''} error 1734This function issues an {\em ``assertion failed!''} error