lua-users home
lua-l archive

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


On Wed, 5 Jun 2019 at 16:02, Paul K <paul@zerobrane.com> wrote:
>
> >> local resource x = 5
> > So what you showed appears invalid grammatically ... but the parser allows it?
>
> It's interpreted as `local resource; x = 5`, which is valid.
>

Okay I understand now. Goes to show one never stops learning.
So yes I agree that there is a backward compatibility issue - not
because resource will become a keyword, but because of the way the
parser handles this case.

Thanks and regards
Dibyendu