aboutsummaryrefslogtreecommitdiff
path: root/manual.tex
diff options
context:
space:
mode:
authorRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-05-27 17:21:03 -0300
committerRoberto Ierusalimschy <roberto@inf.puc-rio.br>1999-05-27 17:21:03 -0300
commit5caf7f4a33938f482be78d1b4a807e86411706f0 (patch)
treea476505262d12001e3026583804dd4369503e452 /manual.tex
parent3b533ea7c7fd65c2c2e61cd4c0a00578152e450a (diff)
downloadlua-5caf7f4a33938f482be78d1b4a807e86411706f0.tar.gz
lua-5caf7f4a33938f482be78d1b4a807e86411706f0.tar.bz2
lua-5caf7f4a33938f482be78d1b4a807e86411706f0.zip
tremove erases its previous last element (to avoid locking potential
garbagge).
Diffstat (limited to 'manual.tex')
-rw-r--r--manual.tex7
1 files changed, 4 insertions, 3 deletions
diff --git a/manual.tex b/manual.tex
index 1ad30d34..e8c3b6a5 100644
--- a/manual.tex
+++ b/manual.tex
@@ -1,4 +1,4 @@
1% $Id: manual.tex,v 1.31 1999/05/05 19:21:57 roberto Exp roberto $ 1% $Id: manual.tex,v 1.32 1999/05/11 20:46:28 roberto Exp roberto $
2 2
3\documentclass[11pt]{article} 3\documentclass[11pt]{article}
4\usepackage{fullpage,bnf} 4\usepackage{fullpage,bnf}
@@ -41,7 +41,7 @@ Waldemar Celes
41\tecgraf\ --- Computer Science Department --- PUC-Rio 41\tecgraf\ --- Computer Science Department --- PUC-Rio
42} 42}
43 43
44\date{{\small \tt\$Date: 1999/05/05 19:21:57 $ $}} 44\date{{\small \tt\$Date: 1999/05/11 20:46:28 $ $}}
45 45
46\maketitle 46\maketitle
47 47
@@ -2281,11 +2281,12 @@ except that the table accesses are all raw (that is, without tag methods):
2281 pos = pos or n 2281 pos = pos or n
2282 local value = t[pos] 2282 local value = t[pos]
2283 if n<=0 then return end 2283 if n<=0 then return end
2284 t.n = n-1
2285 while pos < n do 2284 while pos < n do
2286 t[pos] = t[pos+1] 2285 t[pos] = t[pos+1]
2287 pos = pos+1 2286 pos = pos+1
2288 end 2287 end
2288 t[n] = nil
2289 t.n = n-1
2289 return value 2290 return value
2290 end 2291 end
2291\end{verbatim} 2292\end{verbatim}