From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,ab3aebfbc6e52428 X-Google-Attributes: gidfee84,public From: Ken Block USG Subject: Re: Namespaces in C++ Date: 1999/02/15 Message-ID: <36C85050.7A36B3C7@zk3.dec.com>#1/1 X-Deja-AN: 444630531 References: <36C7EC25.2781@mathconsult.co.at> Content-Type: multipart/mixed; boundary="------------C205A16966AD477185D38BD1" Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 This is a multi-part message in MIME format. --------------C205A16966AD477185D38BD1 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Both g++ and DEC C++ compilers support namespaces. Can you give an example of code that they do not accept? cxxosf.zko.dec.com> rm t.o cxxosf.zko.dec.com> g++ -version -c t.cxx mips-tfile version egcs-2.91.57 19980901 (egcs-1.1 release) cxxosf.zko.dec.com> ls -l t.o -rw-rw-r-- 1 block decc 1320 Feb 15 11:43 t.o cxxosf.zko.dec.com> rm t.o cxxosf.zko.dec.com> cxx -V -c t.cxx DIGITAL C++ T6.2-007 on DIGITAL UNIX V4.0 (Rev. 878) cxxosf.zko.dec.com> ls -l t.o -rw-rw-r-- 1 block decc 432 Feb 15 11:43 t.o cxxosf.zko.dec.com> cat t.cxx namespace X { int i; }; namespace Y { int i; }; void main() { X::i = 0; Y::i = 0; } --------------C205A16966AD477185D38BD1 Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Kenneth Block Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Kenneth Block n: Block;Kenneth org: CTG C/C++ Compiler adr: 110 Spit Brook Road;;M/S ZKO3-2/W02;Nashua;NH;03062;USA email;internet: block@zk3.dec.com tel;work: 603-884-2819 x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------C205A16966AD477185D38BD1--