Mail Archives: djgpp/1997/10/05/17:19:20
In article <3437D17E DOT A9F1CCAE AT nbnet DOT nb DOT ca>,
Jason Nye <jnye AT nbnet DOT nb DOT ca> 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)
- Raw text -