lua-users home
lua-l archive

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


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Javier Guerra wrote:
[...]
> ok, so what should be the outcome of that error?
> 
> - skip declaration/initialization?
> - skip loop test?
> - crash and burn?

Actually, my gut feeling is that the 'local' should actually happen
retroactively from the beginning of the chunk --- so jumping over the
'local' statement simply gives you an uninitialised variable, i.e. nil.
I'm not sure that the implementation would allow this, of course.

- --
┌─── dg@cowlark.com ───── http://www.cowlark.com ─────
│ "Wizards get cranky, / Dark days dawn, / Riders smell manky, / The
│ road goes on. / Omens are lowering, / Elves go West; / The Shire needs
│ scouring, / You may as well quest." - John M. Ford
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHwuaKf9E0noFvlzgRApuPAJ4wC0tYHASq/xFM2YZ3E4W9A+HFQgCgoyt2
Ud5A+Zk7303Dqn+991Kaycw=
=mb5c
-----END PGP SIGNATURE-----