lua-users home
lua-l archive

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


> This is one thing I never understood. Why is it implemented that way - in 
> all other programming languages (that I know) variables in 
> subroutines/functions are automatically local. Is there a reason, why it 
> is implemented the other way round? 

It's mainly because of the original goal of Lua: to be used as a
configuration language, where data to be set must then be read by
some other code.

-- 
Lyrian