home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!haven.umd.edu!wam.umd.edu!krc
- From: krc@wam.umd.edu (Kevin R. Coombes)
- Subject: Re: Survey: File Extension
- Message-ID: <1992Dec15.145208.27600@wam.umd.edu>
- Sender: usenet@wam.umd.edu (USENET News system)
- Nntp-Posting-Host: rac1.wam.umd.edu
- Organization: University of Maryland, College Park
- References: <Bz80Bu.HI4@knot.ccs.queensu.ca> <WARSAW.92Dec14101955@anthem.nlm.nih.gov> <1992Dec14.211010.10318@rd.hydro.on.ca>
- Date: Tue, 15 Dec 1992 14:52:08 GMT
- Lines: 24
-
- In article <1992Dec14.211010.10318@rd.hydro.on.ca> twriter@rd.hydro.on.ca writes:
- >warsaw@nlm.nih.gov (Barry A. Warsaw) writes:
- >
- >
- >>Should the .h file extension matter? Do compilers supporting
- >>pre-compiled headers need to know the extension for header files?
- >>Just wondering 'cause we use .cc and .hh
- >
- >Is there a good reason for having separate extensions for C and C++
- >header files? Why not share header files between C and C++ like so:
- > [example omitted]
- >
- >One situation where I have found it useful to have separate extensions
- >is for editors which choose a mode based on the extension. However, I
- >get around this with GNU emacs using file local variables e.g.
- >
-
- Emacs will default according to the extension, but this can be overridden
- by the first line of the file. For example, the headers for libg++ all
- start with:
-
- // This may look like C code, but it is really -*- C++ -*-
-
- Kevin Coombes <krc@math.umd.edu>
-