lua-users home
lua-l archive

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


> >Lua would see that as a single statement, a = f(g).x(a).
> >So, if you want two statements, you must add a semi-colon
> >between them. If you actually want to call f, you must
> >remove the line break before (g).
> 
> As Shmuel pointed out, though, this should be a compile-time
> error ("ambiguous syntax").

If I understood correctly, his code did not have line breaks.

-- Roberto