It has been nice to see a good old banter. Windex.msvc have been pretty quiet for so long.. :)
> -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Paul Grenyer > Sent: 25 January 2005 14:48 > To: [email protected] > Subject: Re: [msvc] Handles Across Threads > > > Hi > > > > You cannot be serious. Globals are bad all the time. > > > > While I may not agree with making the handle global in this case it > > should be noted that you cannot avoid globals. main( ) and > WinMain( ) > > use, as do the functions to initialize a C/C++ app and to perform > > cleanup on exit. > And > > then there are the globals that we see in just about any C++ > > framework/wrapper library (like MFC) that if we were to use it, we > > cannot avoid it's globals. > > > > They cannot be avoided. > > Absolutely, but that doesn't mean you should introduce more > of your own. > > > But at the same time I agree their usage should be limited. My > > globals > were > > always prefixed with g_ and were only made global if their > wasn't any > other > > hierarchical object that should claim ownership. > > Then they should probably be paramtised from above. > > We'll not mention how bad Hungarian notation is. ;-) > > Regards > Paul > > Paul Grenyer > email: [EMAIL PROTECTED] > web: http://www.paulgrenyer.co.uk > articles: http://www.paulgrenyer.dyndns.org/articles/ > > "15 miles to the love shack...." > > > _______________________________________________ > msvc mailing list > [email protected] > See > http://beginthread.com/mailman/listinfo/msvc_beginthread.com > for subscription changes, and list archive. > > > This message has been scanned for viruses by MailControl - > (see http://bluepages.wsatkins.co.uk/?4318150) > This email and any attached files are confidential and copyright protected. If you are not the addressee, any dissemination of this communication is strictly prohibited. Unless otherwise expressly agreed in writing, nothing stated in this communication shall be legally binding. _______________________________________________ msvc mailing list [email protected] See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for subscription changes, and list archive.
