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