home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / std / cplus / 2112 < prev    next >
Encoding:
Internet Message Format  |  1993-01-25  |  1.4 KB

  1. Path: sparky!uunet!pilchuck!fnx!nazgul!bright
  2. From: bright@nazgul.UUCP (Walter Bright)
  3. Newsgroups: comp.std.c++
  4. Subject: Re: RESULTS: C++ file extension survey
  5. Message-ID: <1589@nazgul.UUCP>
  6. Date: 24 Jan 93 05:32:37 GMT
  7. References: <1if5q2INN8pj@tsavo.hks.com> <1993Jan7.182757.8297@wam.umd.edu> <1569@nazgul.UUCP> <1993Jan12.153045.15612@cs.brown.edu>
  8. Reply-To: bright@nazgul.UUCP (Walter Bright)
  9. Organization: Zortech, Seattle
  10. Lines: 20
  11.  
  12. In article <1993Jan12.153045.15612@cs.brown.edu> sdm@cs.brown.edu (Scott Meyers) writes:
  13. /In article <1569@nazgul.UUCP> bright@nazgul.UUCP (Walter Bright) writes:
  14. /| Zortech C++ will recognize .cpp, .cxx, .cc and .c++ all as valid C++
  15. /| filename extensions, though our examples all use .cpp.
  16. /I have never been able to fathom why any compiler *cares* what file
  17. /extension is used.
  18.  
  19. Because the driver program recognizes ASM, OBJ, C, C++, EXE, COM, LIB,
  20. DEF files, etc., and tries to do the obvious thing with it. For instance,
  21. if a .EXE file name is given, the driver assumes that is the name of the
  22. output file wanted.
  23.  
  24. Also, the driver tries on various extensions if the user didn't type in
  25. one. This can be a nice convenience.
  26.  
  27. If all else fails, the driver assumes it is a C++ or C program, depending
  28. on if the -cpp is used or not.
  29.  
  30. As to whether a #include file is .h or .hpp or whatever, makes absolutely
  31. *no* difference to the driver.
  32.