namespace
Collapse
This topic is closed.
X
X
-
prasatTags: None -
Victor Bazarov
Re: namespace
"prasat" <member25456@db forums.com> wrote...[color=blue]
>
> What does namespace signify in C++
>[/color]
It signifies space for names. Names declared in a namespace
are visible inside that namespace only if you don't use any
special name resolution constructs.
Victor
-
Buster
Re: namespace
"Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
news:Mur0b.1517 36$It4.77204@rw crnsc51.ops.asp .att.net...[color=blue]
> "prasat" <member25456@db forums.com> wrote...[color=green]
> >
> > What does namespace signify in C++
> >[/color]
>
> It signifies space for names. Names declared in a namespace
> are visible inside that namespace only[/color]
I think you need a comma here ... <g>
[color=blue]
> if you don't use any
> special name resolution constructs.
>
> Victor[/color]
Comment
-
Victor Bazarov
Re: namespace
"Buster" <noone@nowhere. com> wrote...[color=blue]
>
> "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
> news:Mur0b.1517 36$It4.77204@rw crnsc51.ops.asp .att.net...[color=green]
> > "prasat" <member25456@db forums.com> wrote...[color=darkred]
> > >
> > > What does namespace signify in C++
> > >[/color]
> >
> > It signifies space for names. Names declared in a namespace
> > are visible inside that namespace only[/color]
>
> I think you need a comma here ... <g>[/color]
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.
[color=blue]
>[color=green]
> > if you don't use any
> > special name resolution constructs.
> >
> > Victor[/color][/color]
Comment
-
tom_usenet
Re: namespace
On Tue, 19 Aug 2003 16:07:21 GMT, "Victor Bazarov"
<v.Abazarov@att Abi.com> wrote:
[color=blue]
>"Buster" <noone@nowhere. com> wrote...[color=green]
>>
>> "Victor Bazarov" <v.Abazarov@att Abi.com> wrote in message
>> news:Mur0b.1517 36$It4.77204@rw crnsc51.ops.asp .att.net...[color=darkred]
>> > "prasat" <member25456@db forums.com> wrote...
>> > >
>> > > What does namespace signify in C++
>> > >
>> >
>> > It signifies space for names. Names declared in a namespace
>> > are visible inside that namespace only[/color]
>>
>> I think you need a comma here ... <g>[/color]
>
>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.[/color]
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
Comment
Comment