summaryrefslogtreecommitdiff
path: root/manual.tex
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-27 19:38:49 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1997-06-27 19:38:49 -0300
commitef3c45d5230b08d87b53d67c04f34873c3d24933 (patch)
treea8b76b4bd5ea8aade1c0eec1bf017ce91d863b0b /manual.tex
parent20a48a818f4084f1b6480e3ec846c219abaafd5b (diff)
downloadlua-github-ef3c45d5230b08d87b53d67c04f34873c3d24933.tar.gz
for security reasons, one cannot change the tag of a udatav3_0v3.0
from Lua.
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 @@
-% $Id: manual.tex,v 2.6 1997/06/26 20:39:10 roberto Exp roberto $
+% $Id: manual.tex,v 2.7 1997/06/27 18:39:34 roberto Exp roberto $
\documentstyle[fullpage,11pt,bnf]{article}
@@ -38,7 +38,7 @@ Waldemar Celes
\tecgraf\ --- Computer Science Department --- PUC-Rio
}
-\date{\small \verb$Date: 1997/06/26 20:39:10 $}
+\date{\small \verb$Date: 1997/06/27 18:39:34 $}
\maketitle
@@ -263,7 +263,7 @@ values of type userdata and table can have
as many different tags as needed \see{tag-method}.
Tags are created with the function \verb|newtag|,
and the function \verb|tag| returns the tag of a given value.
-To change the tag of a given userdata or table,
+To change the tag of a given table,
there is the function \verb|settag| \see{pdf-newtag}.
@@ -1723,12 +1723,12 @@ This function allows Lua to test the tag of a value \see{TypesSec}.
It receives one argument, and returns its tag (a number).
\verb|tag| is equivalent to the API function \verb|lua_tag|.
-\subsubsection*{\ff {\tt settag (o, tag)}}\Deffunc{settag}
-This function sets the tag of a given object \see{TypesSec}.
-The object \verb|o| must be a userdata or a table.
+\subsubsection*{\ff {\tt settag (t, tag)}}\Deffunc{settag}
+This function sets the tag of a given table \see{TypesSec}.
\verb|tag| must be a value created with \verb|newtag|
\see{pdf-newtag}.
-\verb|settag| is equivalent to the API function \verb|lua_settag|.
+For security reasons,
+it is impossible to change the tag of a userdata from Lua.
\subsubsection*{\ff {\tt assert (v)}}\Deffunc{assert}
This function issues an {\em ``assertion failed!''} error