home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / lang / cplus / 17866 < prev    next >
Encoding:
Internet Message Format  |  1992-12-12  |  2.2 KB

  1. Path: sparky!uunet!usc!enterpoop.mit.edu!eru.mt.luth.se!lunic!sunic!aun.uninett.no!news.uit.no!bjoerns
  2. From: bjoerns@PROBLEM_WITH_INEWS_GATEWAY_FILE (Bjoern Stabell)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Survey: File Extension
  5. Message-ID: <1992Dec12.191011.20258@news.uit.no>
  6. Date: 12 Dec 92 19:10:11 GMT
  7. References: <1992Dec12.014834.926@netcom.com>
  8. Sender: news@news.uit.no (USENET News System)
  9. Organization: University of Tromsoe, Norway
  10. Lines: 40
  11. X-Newsreader: TIN [version 1.1 PL7]
  12.  
  13. Eric Smith (erc@netcom.com) wrote:
  14. ] In article <78146@hydra.gatech.EDU> andy@federation.gatech.edu (Andy Register) writes:
  15. ] >In article <1gb1h0INNle2@tsavo.hks.com> webb@hks.com writes:
  16. ] > >I have a survey question for you all:
  17. ] > >
  18. ] > >    What extension do you believe is correct for C++ source code?
  19. ] > >    Is a clear majority winner emerging?  The contenders are: .C, .c
  20. ] > >    and .cxx. 
  21. ] >
  22. ] >don't forget .cpp for all us borland users.
  23. ] That's not just Borland.  A lot of other vendors, such as Microsoft and
  24. ] Zortech, use it too.  I think the reason why a lot of Unix compiler
  25. ] vendors didn't like .cpp and used .cc, .C, .cxx, etc. was that the name
  26.  
  27. Was .cpp the original C++ extension?
  28.  
  29. ] C++ wasn't originally intended to be pronounced "see plus plus", as the
  30. ] ++ operator was originally called the increment operator, and a lot of
  31. ] C programmers considered people who called it "plus plus" to be
  32. ] uneducated.  But that has gradually changed over the years, and now the
  33. ] majority calls C++ "see plus plus" and uses .cpp as the filename
  34. ] extension.  So we might as well standardize on .cpp, because that's the
  35. ] way it's going anyway and no one can stop it.
  36.  
  37. Well, when I see cpp, I think about the C Pre Processor (/lib/cpp).
  38. I.e., it's ambigous in the UNIX world.  Maybe that's why they avoided
  39. it - given that UNIX C++ compilers were the LAST ones to emerge, which
  40. I'm not so sure about.
  41.  
  42. Btw, if one uses .C, isn't .H the right extension for C++ header files?
  43. I've not seen it used very often.
  44.  
  45.  
  46. Kind regards,
  47. --
  48.                                              Bjxrn Stabell
  49.                                              University of Tromsx
  50.                                              (+47) 83 44 053 / 83 75 164
  51.                                              bjoerns@staff.cs.uit.n
  52.