lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Tue, 30 Jan 2001, Roberto Ierusalimschy wrote:

> > You have to write plus(3), and then can't apply the result directly to 4
>
> You can, as long as you use the parentheses: plus(3)(4) is legal syntax.

Oh, goody. I got confused, because I tried writing:

(plus(3))(4)

and this seems to be illegal (which is a little counter-intuitive: adding
extra brackets shouldn't matter).

-- 
http://sc3d.org/rrt/ | humour, n.  unexpected recognition