Mail Archives: djgpp/2000/07/12/23:45:50

Message-ID: <>
X-Originating-IP: []
From: "Nimrod Abing" <n_abing AT hotmail DOT com>
To: djgpp AT delorie DOT com
Subject: Re: DJGPP - failure to implement namespaces properly
Date: Thu, 13 Jul 2000 11:45:36 PHT
Mime-Version: 1.0
Reply-To: djgpp AT delorie DOT com

>From: jstacey AT plato DOT wadham DOT ox DOT ac DOT uk (J-P)
>Reply-To: djgpp AT delorie DOT com
>To: djgpp AT delorie DOT com
>Subject: Re: DJGPP - failure to implement namespaces properly
>Date: 12 Jul 2000 11:29:31 +0100
>In article <396b310a DOT 33541001 AT news DOT freeserve DOT net>,
>Paul Bibbings <paul DOT bibbings AT tesco DOT net> wrote:
> >Don't get me wrong, as a novice C++ programmer I have no doubt that
> >DJGPP/Rhide is my favourite compiler/IDE combination, and that is why
> >I am all the more frustrated when it seems it doesn't implement the
> >language in ways the textbooks would expect it to.
>Poor implementation of namespaces is (I think) a known bug with g++. You
>might be best changing your compiler - I think you can do this with RHIDE,
>can't you? - but I'm fairly certain Microsoft Visual C++ is also buggy,

The example given in the original post *will* compile with MSVC 6 as it
is. But try using the class AB as given in Stroustrup 15.2.2 and it
would give linker errors. It would compile cleanly if you qualify the
function names.

-- [snip] --

     AB ab;


-- [snip] --

Stroustrup is right when he wrote in his book that some C++ compilers
still do not implement some of the specified features of the language.
MSVC 6 is no exception: it has a buggy implementation of namespaces.

>just in different ways, not least in that it defaults to Microsoft
>Proprietary Standard Classes and has all but the most limited support for
>the actual "standard" classes.
>(Disclaimer: this is partly hearsay.)

But it's partly true ;-D




Get Your Private, Free E-mail from MSN Hotmail at

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019