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

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

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -

asp.net - call stack missing info on mono with apache and mod_mono -