Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.c++ > #41112
| From | Cholo Lennon <chololennon@hotmail.com> |
|---|---|
| Newsgroups | comp.lang.c++ |
| Subject | Re: C++ complex.h protability |
| Date | 2016-02-22 16:36 -0300 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <nafo08$1lnf$1@gioia.aioe.org> (permalink) |
| References | (1 earlier) <nacm34$9hk$1@dont-email.me> <nad1ku$a8d$1@gwaiyur.mb-net.net> <nad2qc$tf5$1@jstuckle.eternal-september.org> <nadej3$9ci$1@gwaiyur.mb-net.net> <nadove$ud9$1@jstuckle.eternal-september.org> |
On 02/21/2016 10:44 PM, Jerry Stuckle wrote: > On 2/21/2016 5:43 PM, Marcel Mueller wrote: >> On 21.02.16 20.25, Jerry Stuckle wrote: >>>> Earlier C++ compilers required exactly this syntax. >>> >>> Wrong, wrong, wrong. All C compilers from the very beginning just >>> included whatever file was listed. >> >> s/compiler/runtime/; >> > > Wrong. Compilers. Header files have nothing to do with runtime. > >>>>> In the global namespace in a header the `using std::complex` can >>>>> lead to >>>>> unintended name collisions. >>>> >>>> The entire application code is not aware of namespaces. Probably the >>>> keyword "namespace" does not even exist once. As I already mentioned, it >>>> is quite old code. >>> >>> "namespace" has existed for at least 25 years. I'm not sure exactly >>> which standard had it first, but we were using it in the early 90's. >> >> All my complilers from the mid 90's can't deal with namespaces. Neither >> Borland supported them nor IBM VAC++ and AFAIR gcc 2.9.5 did not support >> it either. >> > > Sorry you had compilers which were not standards compliant. That does > not mean it wasn't part of the standard. > It's depends on what you define as C++ standard. Normally we tend to use the ISO C++ as a reference (1998 or later). The ARM document (where namespaces are described) is not considered "the" C++ standard. BTW, what was your compiler that implemented namespaces in the early 90's? As Marcel Mueller said, my compilers in those years didn't have support for namepaces (Borland/Microsoft) >> And well, from the release of a standard to the point where you can >> really use a feature are often years. I recently got complaints about >> C++11 code because still some common Linux Distros do not support it >> because they use gcc 4.7 which at least requires a compiler option and >> even with this option sometimes it does not work. >> > > Yes, it takes time for compiler developers to write code. Whether the > compiler is up to date with the standard or the distro includes a > standards-compliant compiler is immaterial to whether the item is part > of the standard or not. > >>> If >>> your code is older than that, then it probably needs rewriting. >> >> No, it is only about 15 years old. But some of the supported compilers >> did not know about namespaces at this time. >> >> >> Marcel > > It's not anyone else's fault that you were using non-standards compliant > compilers. Namespaces were in the standard, and there were compilers > supporting it. > -- Cholo Lennon Bs.As. ARG
Back to comp.lang.c++ | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
C++ complex.h protability Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-02-21 15:22 +0100
Re: C++ complex.h protability "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-02-21 16:48 +0100
Re: C++ complex.h protability Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-02-21 20:02 +0100
Re: C++ complex.h protability Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-21 14:25 -0500
Re: C++ complex.h protability Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-02-21 23:43 +0100
Re: C++ complex.h protability Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-21 20:44 -0500
Re: C++ complex.h protability Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-02-22 19:38 +0100
Re: C++ complex.h protability Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-22 14:14 -0500
Re: C++ complex.h protability Cholo Lennon <chololennon@hotmail.com> - 2016-02-22 16:36 -0300
Re: C++ complex.h protability Ian Collins <ian-news@hotmail.com> - 2016-02-23 08:53 +1300
Re: C++ complex.h protability Cholo Lennon <chololennon@hotmail.com> - 2016-02-22 17:03 -0300
Re: C++ complex.h protability Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-22 15:16 -0500
Re: C++ complex.h protability "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-02-22 21:38 +0100
Re: C++ complex.h protability Cholo Lennon <chololennon@hotmail.com> - 2016-02-22 17:50 -0300
Re: C++ complex.h protability Cholo Lennon <chololennon@hotmail.com> - 2016-02-22 18:09 -0300
Re: C++ complex.h protability legalize+jeeves@mail.xmission.com (Richard) - 2016-02-22 21:20 +0000
Re: C++ complex.h protability Öö Tiib <ootiib@hot.ee> - 2016-02-22 12:47 -0800
Re: C++ complex.h protability Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-22 16:18 -0500
Re: C++ complex.h protability Öö Tiib <ootiib@hot.ee> - 2016-02-22 13:51 -0800
Re: C++ complex.h protability Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-22 16:57 -0500
Re: C++ complex.h protability legalize+jeeves@mail.xmission.com (Richard) - 2016-02-22 22:16 +0000
Re: C++ complex.h protability Öö Tiib <ootiib@hot.ee> - 2016-02-22 15:09 -0800
Re: C++ complex.h protability Jerry Stuckle <jstucklex@attglobal.net> - 2016-02-22 19:53 -0500
Re: C++ complex.h protability Öö Tiib <ootiib@hot.ee> - 2016-02-22 23:23 -0800
Re: C++ complex.h protability Robert Wessel <robertwessel2@yahoo.com> - 2016-02-22 02:54 -0600
Re: C++ complex.h protability "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-02-21 22:05 +0100
Re: C++ complex.h protability bartekltg <bartekltg@gmail.com> - 2016-02-23 10:55 +0100
Re: C++ complex.h protability "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-02-23 19:45 +0100
Re: C++ complex.h protability "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-02-23 19:55 +0100
Re: C++ complex.h protability bartekltg <bartekltg@gmail.com> - 2016-02-23 20:41 +0100
Re: C++ complex.h protability "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-02-23 22:26 +0100
Re: C++ complex.h protability Christian Gollwitzer <auriocus@gmx.de> - 2016-02-22 08:16 +0100
Re: C++ complex.h protability Öö Tiib <ootiib@hot.ee> - 2016-02-22 02:06 -0800
Re: C++ complex.h protability Ian Collins <ian-news@hotmail.com> - 2016-02-22 09:00 +1300
Re: C++ complex.h protability Marcel Mueller <news.5.maazl@spamgourmet.org> - 2016-02-21 23:51 +0100
Re: C++ complex.h protability Öö Tiib <ootiib@hot.ee> - 2016-02-21 15:41 -0800
Re: C++ complex.h protability "Alf P. Steinbach" <alf.p.steinbach+usenet@gmail.com> - 2016-02-22 00:50 +0100
csiph-web