Article View: comp.std.c++
Article #2748Re: using namespace std
From: Nathan Myers
Date: Tue, 28 Nov 1995 00:31
Date: Tue, 28 Nov 1995 00:31
24 lines
1539 bytes
1539 bytes
Lassi A. Tuura wrote: > ... most > applications will be doing the equivalent of "using namespace std;", > and the resulting conflicts could become overwhelming. This is a very odd remark. The standard names are in the std namespace specifically to prevent such "overwhelming" conflicts. In the design of the standard library, we have considered the std namespace sufficient encapsulation that we need not be concerned about name conflicts with user code. Tuura seems to be predicting that this stratagem will fail. Do those teaching C++ agree that namespace std encapsulation is a failure? When you write about C++, are you advising readers to say "using namespace std;"? Nathan Myers myersn@roguewave.com --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<30BA21AC.4E9C@netcom.com>Path:
arc1-ca.pugleaf.net!in1.uu.net!bounce-backReferences:
<LASSI.TUURA.95Nov22175004@neppari.cs.hut.fi>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in1.uu.net!bounce-back Date: 28 Nov 95 00:31:25 GMT Approved: fjh@cs.mu.oz.au From: Nathan Myers <ncm@netcom.com> Newsgroups: comp.std.c++ Subject: Re: using namespace std X-Original-Date: Mon, 27 Nov 1995 12:38:04 -0800 Organization: Best Internet Communications Message-ID: <30BA21AC.4E9C@netcom.com> References: <LASSI.TUURA.95Nov22175004@neppari.cs.hut.fi> X-Mailer: Mozilla 2.0b2 (X11; I; SunOS 5.4 sun4m) X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMLpYa+EDnX0m9pzZAQE/dgF/Z3ZTU4eEI4llxtM4up+Y5ii16O63lnmP zpM8fzMXQlbyiM9fZQh6t1moh8MA7ozF =PAou