[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua 5.1 (work1) now available
- From: Eric Tetz <erictetz@...>
- Date: Thu, 2 Sep 2004 12:32:18 -0700
Roberto Ierusalimschy wrote:
> - there are several other small changes
What I've found (by comparing _G in 5.0 vs 5.1):
Removed:
io.popen
arg.n
Added:
_PATH
New name for LUA_PATH (now deprecated) used by 'require'
string.reverse (s)
returns a reversed copy of string 's'
select (n, ...)
If n is '#', returns number of variable arguments
e.g. select('#',a,b,c,d,e) returns 5
If n is a number, returns variable arguments [n,numvarargs]
e.g. select(4,a,b,c,d,e) returns d,e
-- function that prints it's args
function varag(...)
for i=1,select('#',...) do
print(i, (select(i,...)))
end
end
load
No idea what this does. ^_^