[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Possible bug with statement parsing?
- From: roberto@... (Roberto Ierusalimschy)
- Date: Sat, 23 Jun 2007 19:03:14 -0300
> >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.