lua-users home
lua-l archive

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


2013/4/15 Steve Litt <slitt@troubleshooters.com>:

> So I think you're right that globals shouldn't be banned. On the other
> hand, you're not going to see me using many global variables holding
> data any time soon.

I like to use the word pseudo-globals for local variables whose scope
is all of the program file, and I declare them at the top.

They usually do contain data :-) but basically I agree with you.