home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!enterpoop.mit.edu!usc!zaphod.mps.ohio-state.edu!uunet.ca!frumious!pat
- From: pat@frumious.uucp (Patrick Smith)
- Subject: Re: Standard library functions and macros
- Message-ID: <C0Is7A.8E@frumious.uucp>
- Date: Fri, 8 Jan 1993 05:21:10 GMT
- Reply-To: uunet.ca!frumious!pat
- References: <1993Jan5.032555.12777@lucid.com> <1993Jan06.183334.4535@microsoft.com> <1993Jan7.042121.23809@lucid.com>
- Organization: None
- Lines: 29
-
- It seems to me that, even if the C++ standard prohibits implementing
- standard library functions as macros, an implementation could still
- allow programs to write something like
-
- #pragma macros
- #include <stdio.h>
-
- or
-
- #define __STANDARD_MACROS
- #include <stdio.h>
-
- to get C-style function declarations (external declarations,
- possibly masked by macros).
-
- Such an implementation would permit programmers to get the
- C-style declarations with one simple change to their programs.
- Furthermore, this change could easily be automated if it were
- necessary to change a large number of source files.
-
- My guess is that a very small percentage of programs would be
- adversely affected by the prohibition of macros, so requiring
- the maintainers of such programs to make a small change like
- this seems reasonable to me.
-
- --
- Patrick Smith
- uunet.ca!frumious!pat
- pat%frumious.uucp@uunet.ca
-