From: rmacombe AT f1n7 DOT u DOT arizona DOT edu (Robert J Macomber) Newsgroups: comp.os.msdos.djgpp Subject: Re: C++ scope resolution operator... Date: 5 Oct 1997 20:15:58 GMT Organization: The University of Arizona Lines: 14 Message-ID: <618shu$i24$1@news.ccit.arizona.edu> References: <3437D17E DOT A9F1CCAE AT nbnet DOT nb DOT ca> NNTP-Posting-Host: f1n7.u.arizona.edu To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk In article <3437D17E DOT A9F1CCAE AT nbnet DOT nb DOT ca>, Jason Nye wrote: >But it won't even compile. It says that i is undeclared on the 'cout << >i << endl' line?! I am confused. Was there actually an attempt to get >the scope resolution operator working or is it implemented the same as >namespaces in djgpp (in other words -- not)? If someone could give me >an update, I'd appreciate it. It works perfectly well -- "::i" means "i at the global level", not "i at the scope enclosing this one". Since there is no global i in your example, you get an error. -- Rob Macomber (rmacombe AT u DOT arizona DOT edu)