From 1918872550445306166
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 109fba,22e67e794d61e771
X-Google-Attributes: gid109fba,public
X-Google-Thread: f78e5,22e67e794d61e771
X-Google-Attributes: gidf78e5,public
From: Ron Natalie <ron@sensor.com>
Subject: Re: The definition of namespace.
Date: 1999/09/01
Message-ID: <37CD3FE6.D4D1B57B@sensor.com>#1/1
X-Deja-AN: 519813564
Content-Transfer-Encoding: 7bit
Approved: Fergus Henderson <fjh@cs.mu.oz.au>
References: <37cbef06.0@newsfeed.jdedwards.com>
X-Original-Date: Wed, 01 Sep 1999 11:01:58 -0400
Content-Type: text/plain; charset=us-ascii
X-Complaints-To: news@news.unimelb.edu.au
X-Trace: izvestia.its.unimelb.edu.au 936206697 26541 128.250.37.153 (1 Sep 1999 17:24:57 GMT)
Organization: Sensor Systems
X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUAN81hWeEDnX0m9pzZAQG8/QF+MMA5ZpKp0u45FG6+rd/zPQs6AsPMJVw1 /Fso0MrhzbackTS/ec/5WA3r527nzENN =KkXt
Mime-Version: 1.0
NNTP-Posting-Date: 1 Sep 1999 17:24:57 GMT
Newsgroups: comp.lang.c++,comp.std.c++

Jerry wrote:
> 
> Hi:
>     I feel that the namespace and scope are almost the same thing. So I give
> the definition of  namespace as  the name of a scope.  Is it a correct
> definition?  Thanks in advacne.
> 

In C++ "namespace" is a very specific concept.  It refers to a facility
to partition global names.

Scope is a broader concept.  It describes how a name is interpretted
at a give point.  It involves the function block heirarchy, the
class heirarcy, and the namespaces in use.
---
[ comp.std.c++ is moderated.  To submit articles, try just posting with ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu    ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://reality.sgi.com/austern_mti/std-c++/faq.html              ]



