[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: In praise of globals
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 15 Apr 2013 22:26:35 +0200
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.