home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!secapl!Cookie!frank
- From: frank@Cookie.secapl.com (Frank Adams)
- Subject: Re: Idempotent header file proposal
- Message-ID: <1992Nov21.175456.119915@Cookie.secapl.com>
- Date: Sat, 21 Nov 1992 17:54:56 GMT
- References: <1992Nov19.090742.23696@cbfsb.cb.att.com> <1992Nov20.010009.24900@taumet.com>
- Organization: Security APL, Inc.
- Lines: 27
-
- In article <1992Nov20.010009.24900@taumet.com> steve@taumet.com (Steve Clamage) writes:
- >nh@cbnewsg.cb.att.com (nicholas.hounsome) writes:
- >>Can we not have a standard pragma to say that a header file is idempotent
- >
- >This solves a problem outside the language, and for that reason is
- >probably not appropriate to put in the language Standard. [...]
- >
- >Many people involved with standards efforts believe that there should
- >not be such a thing as a "standard pragma". A pragma by its nature
- >controls something non-standard, non-portable, or system-specific.
- >If the thing controlled were generally portable, it should probably
- >be a language feature, not a pragma.
-
- You appear to be contradicting yourself here. This is a generic problem; it
- does *not* apply only to some systems. So a standard is appropriate; but if
- it is neither to be a language standard nor a standard pragma, how is it to
- be done?
-
- > In
- >particular, you are assuming that a standard header is a file, and
- >that it is read and processed by the compiler in the way user text
- >files are processed.
-
- No, the proposal is for a pragma to be placed in the include file. As such,
- it is directly applicable only to user-defined headers, which must indeed be
- files. Of course, this would in no way prevent compiler-writers from using
- it for standard headers, if it was appropriate.
-