Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Ken Block USG <block@zk3.dec.com>
Subject: Re: Namespaces in C++
Date: 1999/02/15	[thread overview]
Message-ID: <36C85050.7A36B3C7@zk3.dec.com> (raw)
In-Reply-To: 36C7EC25.2781@mathconsult.co.at

[-- Attachment #1: Type: text/plain, Size: 659 bytes --]

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;

}

[-- Attachment #2: Card for Kenneth Block --]
[-- Type: text/x-vcard, Size: 336 bytes --]

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


  reply	other threads:[~1999-02-15  5:00 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-02-15  5:00 Namespaces in C++ Rosenkranz Markus
1999-02-15  5:00 ` Ken Block USG [this message]
1999-03-11  5:00 ` J�rn Jensen
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox