delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/10/01/04:34:25

From: khan AT xraylith DOT wisc DOT edu (Mumit Khan)
Subject: Re: Namespace support?
1 Oct 1998 04:34:25 -0700 :
Message-ID: <Pine.SUN.3.93.980930100122.9104F-100000.cygnus.gnu-win32@modi.xraylith.wisc.edu>
References: <19980928173144 DOT 30826 DOT qmail AT findmail DOT com>
Mime-Version: 1.0
To: Dwight Schauer <dschauer AT vcsd DOT com>
Cc: gnu-win32 AT cygnus DOT com

On 28 Sep 1998, Dwight Schauer wrote:

> For things like stdio.h, string.h, and such, that
> would be more of a problem, because you would have
> to change every reference, but I don't think that
> is what you are trying to do (at least I hope not)

By standard, these are wrapped in <cstdio>, <cstring>, etc and already
part of C++ library distributed with GNU C++.

You can always use the old-style <stdio.h> or <string.h>, but the issue
there is scoping of the symbols defined by these headers; using the C
style headers dumps everything into the global namespace, whereas using
the "new" C++ style puts the symbols in the properly scoped std
namespace.

> 
> > this way, since it's the new VC++ standard), and secondly, will the 
> 
> What a strange standard.
> 

That is the standard, and nothing strange about it whatsoever. See any
good C++ text or the C++ standard for info on why. VC++ is just following
it better than most, thanks to Dinkumware C++ library bundled with it.

Regards,
Mumit

-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


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