[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Named function in a table
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 6 Dec 2010 09:53:07 -0200
> > > > local t = {1 2 3 4}
> > >
> > yes, there are ambiguous cases of couse. e.g.
> > { a = f (g)(h) }
>
> Or { f "hello" }. Is it 1 entry or 2 entries?
These cases are not ambiguous. Unlike statements, table entries must
have commas or semicolons between them. (BTW, note that the examples do
not use the proposed extension, so they would be already ambiguous
in current Lua.)
-- Roberto