aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-07-24 14:25:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>2001-07-24 14:25:03 -0300
commitf34001faa91e9ed032dbbcbbcdb65cd085a40807 (patch)
tree90932049e20f4f7554176a43378ed1d6458fa559
parent95988676d8f5ba05c83eda84e2e7369ae854b855 (diff)
downloadlua-f34001faa91e9ed032dbbcbbcdb65cd085a40807.tar.gz
lua-f34001faa91e9ed032dbbcbbcdb65cd085a40807.tar.bz2
lua-f34001faa91e9ed032dbbcbbcdb65cd085a40807.zip
details
-rw-r--r--manual.tex12
1 files changed, 6 insertions, 6 deletions
diff --git a/manual.tex b/manual.tex
index 8284b989..22d6393e 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,4 +1,4 @@
1% $Id: manual.tex,v 1.49 2001/01/31 19:53:01 roberto Exp roberto $ 1% $Id: manual.tex,v 1.50 2001/07/19 13:36:18 roberto Exp roberto $
2 2
3\documentclass[11pt]{article} 3\documentclass[11pt]{article}
4\usepackage{fullpage} 4\usepackage{fullpage}
@@ -134,7 +134,7 @@ Waldemar Celes
134\tecgraf\ --- Computer Science Department --- PUC-Rio 134\tecgraf\ --- Computer Science Department --- PUC-Rio
135} 135}
136 136
137\date{{\small \tt\$Date: 2001/01/31 19:53:01 $ $}} 137\date{{\small \tt\$Date: 2001/07/19 13:36:18 $ $}}
138 138
139\maketitle 139\maketitle
140 140
@@ -2205,18 +2205,18 @@ tables indexed by numbers only:
2205\DefAPI{lua_rawseti} 2205\DefAPI{lua_rawseti}
2206\DefAPI{lua_getn} 2206\DefAPI{lua_getn}
2207 2207
2208\verb|lua_rawgeti| gets the value of the \M{n}-th element of the table 2208\verb|lua_rawgeti| pushes the value of the \M{n}-th element of the table
2209at stack position \verb|index|. 2209at stack position \verb|index|.
2210 2210
2211\verb|lua_rawseti| sets the value of the \M{n}-th element of the table 2211\verb|lua_rawseti| sets the value of the \M{n}-th element of the table
2212at stack position \verb|index| to the value at the top of the stack. 2212at stack position \verb|index| to the value at the top of the stack,
2213removing the value from the stack.
2213 2214
2214\verb|lua_getn| returns the number of elements in the table 2215\verb|lua_getn| returns the number of elements in the table
2215at stack position \verb|index|. 2216at stack position \verb|index|.
2216This number is the value of the table field \verb|n|, 2217This number is the value of the table field \verb|n|,
2217if it has a numeric value, 2218if it has a numeric value,
2218or 2219or the largest numerical index with a non-nil value in the table.
2219the largest numerical index with a non-nil value in the table.
2220 2220
2221\subsection{Calling Lua Functions} 2221\subsection{Calling Lua Functions}
2222 2222