home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / lang / cplus / 16774 < prev    next >
Encoding:
Internet Message Format  |  1992-11-23  |  1.5 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cs.utexas.edu!sun-barr!news2me.EBay.Sun.COM!cronkite.Central.Sun.COM!texsun!digi!mharriso
  2. From: mharriso@digi.lonestar.org (Mark Harrison)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Idempotent header file proposal
  5. Message-ID: <1992Nov23.153527.13442@digi.lonestar.org>
  6. Date: 23 Nov 92 15:35:27 GMT
  7. References: <1992Nov19.090742.23696@cbfsb.cb.att.com> <1992Nov19.221907.4801@lucid.com>
  8. Organization: DSC Communications Corp, Plano, TX
  9. Lines: 31
  10.  
  11. In article <1992Nov19.221907.4801@lucid.com>
  12. jss@lucid.com (Jerry Schwarz) writes:
  13.  
  14. >In article <1992Nov19.090742.23696@cbfsb.cb.att.com>,
  15. >nh@cbnewsg.cb.att.com (nicholas.hounsome) writes:
  16. >|> Of course I know that there is the crude workaround :
  17. >|> 
  18. >|> #ifndef HEADER_H
  19. >|> #define HEADER_H
  20. >|> 
  21. >|> stuff
  22. >|> 
  23. >|> #endif
  24. >|> 
  25.  
  26. >Some compilers/preprocessor recognize this construct in the header,
  27. >remember it, and don't even reopen the file when HEADER_H is #defined at
  28. >the point of the #include. 
  29. >
  30. >I suggest you push your vendor to do this intelligent optimization 
  31. >rather than asking for a #pragma.
  32. >
  33. >   -- Jerry Schwarz
  34.  
  35. Jerry is too modest to say so, but Lucid's compiler does this.
  36. I traced the command line version "lcc" to verify that the
  37. documentation was telling the truth. :-)
  38. -- 
  39. Mark Harrison, mharriso@dsccc.com     Please double check the return address
  40.                                       in the header... It may not be right.
  41.                                       The problem is being worked on.
  42.