| delorie.com/archives/browse.cgi | search |
| X-Originating-Host: | 155.64.60.106 |
| Organization: | http://www.remarq.com: The World's Usenet/Discussions Start Here |
| Subject: | Re: namespaces |
| Lines: | 24 |
| From: | Charlie <ctruellNOctSPAM AT hotmail DOT com DOT invalid> |
| Newsgroups: | comp.os.msdos.djgpp |
| Message-ID: | <200331a0.6bf71d54@usw-ex0102-016.remarq.com> |
| References: | <rre1as820afo4513k2a5l36qhp9ju3e0uc AT 4ax DOT com> |
| Bytes: | 870 |
| X-Wren-Trace: | eJm8lJWMy4HK2pmDidyUnKuChoiRnNCD0paZl9Dc1YzYyY3WwYnCxsXO |
| Date: | Tue, 08 Feb 2000 17:42:18 -0800 |
| NNTP-Posting-Host: | 10.0.2.16 |
| X-Complaints-To: | wrenabuse AT remarq DOT com |
| X-Trace: | WReNphoon4 950060458 10.0.2.16 (Tue, 08 Feb 2000 17:40:58 PST) |
| NNTP-Posting-Date: | Tue, 08 Feb 2000 17:40:58 PST |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
| Reply-To: | djgpp AT delorie DOT com |
In article <rre1as820afo4513k2a5l36qhp9ju3e0uc AT 4ax DOT com>, Xenos
<nobody AT nowhere DOT com> wrote:
>Does DJGPP support or plan to support namespaces?
Yes, it does support namespaces. You need a recent version of gcc
- probably 2.95. I think 2.95.2 is the latest.
gcc is slightly non-standard with namespaces. If it can't resolve
a reference to a name in the global namespace, it automatically
looks in the std namespace. You can usually get away with using a
line like:
cout << "blah" << endl;
when you should strictly have written
std::cout << "blah" << std::endl;
and this might cause problems when porting to other compilers. OF
course, this second version also works in gcc/djgpp.
Charlie.
* Sent from RemarQ http://www.remarq.com The Internet's Discussion Network *
The fastest and easiest way to search and participate in Usenet - Free!
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |