home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 18178 < prev    next >
Encoding:
Text File  |  1992-12-21  |  1.7 KB  |  58 lines

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!turing!coulin!arthur
  2. From: arthur@turing.ac.uk (Arthur van Hoff)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Survey: File Extension
  5. Message-ID: <ARTHUR.92Dec18111030@morlich.turing.ac.uk>
  6. Date: 18 Dec 92 11:19:20 GMT
  7. References: <1gb1h0INNle2@tsavo.hks.com> <78146@hydra.gatech.EDU>
  8.     <stanleyr.724172017@kramden> <Bz80Bu.HI4@knot.ccs.queensu.ca>
  9. Sender: usenet@turing.ac.uk (Usenet for nntp)
  10. Organization: The Turing Institute Ltd., Glasgow, Scotland
  11. Lines: 44
  12. In-Reply-To: kirkwood@qucis.queensu.ca's message of 13 Dec 92 23:09:30 GMT
  13.  
  14.  
  15. Hi,
  16.  
  17. In article <Bz80Bu.HI4@knot.ccs.queensu.ca> kirkwood@qucis.queensu.ca
  18. (Scott Kirkwood) writes:
  19. >  BTW: these are the extensions I've come across: .C, .c, .cxx,
  20. >  .cp (Macintosh), .cpp, .cc, .c++, .C++, .h, .H, and .hxx (off the top
  21. >  of my head).
  22.  
  23. The "Rules and Recommendations" document for programming in C++ by
  24. Mats Henricson and Erik Nyquist of Ellemtel states that .hh should
  25. be used for headerfiles, .icc for files that contain inline methods
  26. and .cc for other source files.
  27.  
  28. The .icc extentions seems to be missing from your list. A special extention
  29. for files that contain inline code is useful so that you can write the
  30. following to handle inline methods (from the above mentioned document):
  31.  
  32. // AnyClass.hh
  33. #ifndef OUTLINE
  34. #include "AnyClass.icc"
  35. #endif
  36.  
  37. // AnyClass.cc
  38. #ifdef OUTLINE
  39. #define inline
  40. #include "AnyClass.icc"
  41. #undef inline
  42. #endif
  43.  
  44.     Arthur van Hoff (arhtur@turing.com)
  45. --
  46.  
  47.     Arthur van Hoff 
  48.     The Turing Institute Limited
  49.     36 North Hanover Street, 
  50.     G1 2AD Glasgow, Scotland
  51.  
  52.     Tel: +44 41 552 8858 or +44 41 552 6400
  53.     Fax: +44 41 552 2985
  54.     Email: arthur@turing.com
  55.  
  56.     The opinions expressed in this message are not 
  57.     necessarily those of The Turing Institute Limited.
  58.