Why does Lua default to global variables? -


my favourite language these days lua. have 1 issue it, why on earth default behaviour variables in functions global? in similar language icon there keyword "global" used when 1 wants use global instead of natural behaviour default local (i bitten again 5 minutes ago). feel better if tell me rational behind (like scoping difficulties know cause absence of "continue" keyword in lua).

see why aren't variables locally scoped default? in lua ufaq.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -