lua-l archive
[
Date Prev
][
Date Next
][
Thread Prev
][
Thread Next
] [
Date Index
] [
Thread Index
]
Subject
:
'...' is a variable,who can explain
From
: "wj" <jiang_wang@
...
>
Date
: Fri, 12 Jan 2007 13:24:24 +0800
look at this code:
--codes begin
function joinFunc(f1,f2)
return function (...)
return f1(f2(...)) --...treated as a variable! is it maze!
end
end
f1 = joinFunc(print,math.abs)
f1(-2) --out:2
--codes end
why the
Follow-Ups
:
Re: '...' is a variable,who can explain
,
jason zhang
Re: '...' is a variable,who can explain
,
Aaron Brown
Prev by Date:
Re: Lua5.1 on S60?
Next by Date:
Re: '...' is a variable,who can explain
Previous by thread:
Re: Lua5.1 on S60?
Next by thread:
Re: '...' is a variable,who can explain
Index(es):
Date
Thread