Hacker News new | ask | show | jobs
by brianto2010 4885 days ago
For what it's worth, you can use the local keyword to limit the scope of variables.

http://www.lua.org/pil/4.2.html