diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-07-24 14:25:03 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2001-07-24 14:25:03 -0300 |
| commit | f34001faa91e9ed032dbbcbbcdb65cd085a40807 (patch) | |
| tree | 90932049e20f4f7554176a43378ed1d6458fa559 | |
| parent | 95988676d8f5ba05c83eda84e2e7369ae854b855 (diff) | |
| download | lua-f34001faa91e9ed032dbbcbbcdb65cd085a40807.tar.gz lua-f34001faa91e9ed032dbbcbbcdb65cd085a40807.tar.bz2 lua-f34001faa91e9ed032dbbcbbcdb65cd085a40807.zip | |
details
| -rw-r--r-- | manual.tex | 12 |
1 files changed, 6 insertions, 6 deletions
| @@ -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 |
| 2209 | at stack position \verb|index|. | 2209 | at 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 |
| 2212 | at stack position \verb|index| to the value at the top of the stack. | 2212 | at stack position \verb|index| to the value at the top of the stack, |
| 2213 | removing 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 |
| 2215 | at stack position \verb|index|. | 2216 | at stack position \verb|index|. |
| 2216 | This number is the value of the table field \verb|n|, | 2217 | This number is the value of the table field \verb|n|, |
| 2217 | if it has a numeric value, | 2218 | if it has a numeric value, |
| 2218 | or | 2219 | or the largest numerical index with a non-nil value in the table. |
| 2219 | the 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 | ||
