[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Weirdness: (a[b])()
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Sun, 11 Feb 2001 09:40:33 -0200 (EDT)
>Why does Lua interpret something like
>
> (action["*"])()
> as action["*"]()()
> and not as action["*"]() ?
Statements in Lua cannot begin in parentheses.
The line (action["*"])() is not valid Lua code.
Perhaps you had something before it, such as
a=b
(action["*"])()
This is read as
a=b (action["*"])()
which gives the two CALLs.
--lhf