473,480 Members | 1,945 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

namespace


What does namespace signify in C++
--
Posted via http://dbforums.com
Jul 19 '05 #1
4 4555
"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 if you don't use any
special name resolution constructs.

Victor
Jul 19 '05 #2

"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 don't use any
special name resolution constructs.

Victor

Jul 19 '05 #3
"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.
if you don't use any
special name resolution constructs.

Victor

Jul 19 '05 #4
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
Jul 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2696
by: John L. Clark | last post by:
I am curious as to the rationale, and effect, of having default namespaces not applying (directly) to attributes (see http://www.w3.org/TR/REC-xml-names/#defaulting). Given an attribute without a...
3
10010
by: Mike Dickens | last post by:
hi, i'm sure this has come up before but havn't managed to find an answer. if i have the following xslt <?xml version="1.0" encoding="ISO-8859-1"?> <xsl:stylesheet method="xml" version="1.0"...
6
1935
by: Don Wash | last post by:
Hi There! I just need some advice on Namespace management for creating reusable VB.NET applications. I would like my applications to have this namespace structure... Namespace MyCompany ...
8
4884
by: Petter Reinholdtsen | last post by:
I ran into a problem on HP-UX 11.00 the other day, where it refused to compile a program using 'using namespace std;' at the top. The reason seem to be that the compiler refuses to accept 'using...
2
5592
by: puzzlecracker | last post by:
after reading some of the post I found out something rather radical to my previous understanding: that when you do #include<iostream> #include<string> #include<vector> etc compiler puts...
2
7495
by: Tony Johansson | last post by:
Hello! I'm reading a book about C++ and there is something that I don't understand so I ask you. Below I have the text from the book and the code from the file where main is located and some...
7
7414
by: Kevin Newman | last post by:
I've been toying with a namespace manager, and wanted to get some input. So what do you think? if (typeof com == 'undefined') var com = {}; if (!com.unFocus) com.unFocus = {}; ...
14
3298
by: Tiraman | last post by:
Hi , I would like to use nested namespace . I have 3 namespace as dll's : Namespace A Namespace B Namespace C And i want to have some namespace that contain them all , some thing like
2
1938
by: Jeff Brown | last post by:
Hi, I suspect that this isn't possible, but I figured I'd ask. My project has a root namespace, let's say it's "Root", that applies to almost every source file (which is why I've set it as the...
0
7033
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6903
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6726
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5318
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
557
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.