lua-users home
lua-l archive

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


> On Mon, Dec 6, 2010 at 8:20 AM, starwing <weasley.wx@gmail.com> wrote:
> > local t = {1 2 3 4}
> > just read a expr() and a optional comma/semi-colon is not diffcult in
> > grammar.
> 
> I bet you there are ambiguous cases, Lisp gets away with it because it
> has no syntax ;)

obvious case:

t = { f "x" }

one or two elements in t, or even more, depending on wether f is a function and how many values it returns...?

Gunnar