lua-users home
lua-l archive

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


> Actually, in my personal opinion, global variables are so dangerous
> that it makes sense to ask the programmer to explicitly declare them as
> a global. As a matter of fact, I feel much more comfortable with
> languages where local is the default, and you have to explicitly
> declare all globals. I sometimes forget to put the word "local" (or
> "my" in Perl), setting myself up for a later subtle bug.

The problem with default-local is that it makes it difficult
(potentially impossible) to control the scope of a variable. How
"local" should local be?

But this is a flamewar for another place.

/s/ Adam