home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / lang / cplus / 16079 < prev    next >
Encoding:
Text File  |  1992-11-10  |  1.1 KB  |  29 lines

  1. Newsgroups: comp.lang.c++
  2. Path: sparky!uunet!usc!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!spool.mu.edu!umn.edu!csus.edu!netcom.com!ort
  3. From: ort@netcom.com (David Oertel)
  4. Subject: Re: Debugging output
  5. Message-ID: <1992Nov11.082434.16988@netcom.com>
  6. Summary: nested includes, when?
  7. Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
  8. References: <spuler.720931050@coral> <1992Nov9.112051.21350@netcom.com> <EB.92Nov10081925@ascent.ascent.com>
  9. Date: Wed, 11 Nov 1992 08:24:34 GMT
  10. Lines: 17
  11.  
  12.  
  13.  
  14. > From: rmartin@thor.Rational.COM (Bob Martin)
  15. > So, take care when using #include in a header file.  Always be sure
  16. > that you the #include is necessary, and that it cannot be replaced
  17. > with a forward declaration.
  18.  
  19.     I needed header file includes for defining base class interfaces but
  20.     used forward references for everything else.  Are there other 
  21.     situations where header file includes are necessary?  Merely putting
  22.     one dependent include file before another in the source file is
  23.     considered equivalent to using a nested include in this question.
  24.  
  25.     Thanks in advance,
  26.     ort@netcom.com
  27.  
  28. -- 
  29.