On Tue, 19 Aug 2003 16:07:21 GMT, "Victor Bazarov"
<v.********@attAbi.com> wrote:
"Buster" <no***@nowhere.com> wrote...
"Victor Bazarov" <v.********@attAbi.com> wrote in message
news:Mu********************@rwcrnsc51.ops.asp.att. net... > "prasat" <me*********@dbforums.com> wrote...
> >
> > What does namespace signify in C++
> >
>
> It signifies space for names. Names declared in a namespace
> are visible inside that namespace only
I think you need a comma here ... <g>
If you want to teach English <comma> you should go to a different NG.
Here we speak and write C++ <no comma> if that's what others ask of us.
Nevertheless, this statement is false:
"Names declared in a namespace
are visible inside that namespace only if you don't use any
special name resolution constructs."
Counter example:
namespace A
{
int i;
int j = ::A::i; //finds ::A::i fine.
};
Whereas this one is true, just about
:
"Names declared in a namespace
are visible inside that namespace only, if you don't use any
special name resolution constructs."
or better:
"Names declared in a namespace
are visible inside that namespace only, unless you use
special name resolution constructs."
I think that's what you meant, anyway.
Tom