lua-users home
lua-l archive

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


Maybe the reference should describe more: "local" should be used once to declare new local variable (with different variable name).
After all, the max number of local variables is limited due to the opcode format.

2015-06-15 21:03 GMT+08:00 Luiz Henrique de Figueiredo <lhf@tecgraf.puc-rio.br>:
> So why the parser do not recognize this case and keep only one variable instance?

For all pratical purposes, it does not matter: the program will have the
same behavior regardless.

So, why complicate the parser?