🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #1361

Re: RESULTS: C++ file extension survey

#1361
From: Walter Bright
Date: Sun, 24 Jan 1993 05:32
20 lines
1414 bytes
In article <1993Jan12.153045.15612@cs.brown.edu> sdm@cs.brown.edu (Scott Meyers) writes:
/In article <1569@nazgul.UUCP> bright@nazgul.UUCP (Walter Bright) writes:
/| Zortech C++ will recognize .cpp, .cxx, .cc and .c++ all as valid C++
/| filename extensions, though our examples all use .cpp.
/I have never been able to fathom why any compiler *cares* what file
/extension is used.

Because the driver program recognizes ASM, OBJ, C, C++, EXE, COM, LIB,
DEF files, etc., and tries to do the obvious thing with it. For instance,
if a .EXE file name is given, the driver assumes that is the name of the
output file wanted.

Also, the driver tries on various extensions if the user didn't type in
one. This can be a nice convenience.

If all else fails, the driver assumes it is a C++ or C program, depending
on if the -cpp is used or not.

As to whether a #include file is .h or .hpp or whatever, makes absolutely
*no* difference to the driver.
Technical Details
Message-ID: <1589@nazgul.UUCP>
Path: arc1-ca.pugleaf.net!sparky!uunet!pilchuck!fnx!nazgul!bright
References: <1if5q2INN8pj@tsavo.hks.com> <1993Jan7.182757.8297@wam.umd.edu> <1569@nazgul.UUCP> <1993Jan12.153045.15612@cs.brown.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pilchuck!fnx!nazgul!bright
From: bright@nazgul.UUCP (Walter Bright)
Newsgroups: comp.std.c++
Subject: Re: RESULTS: C++ file extension survey
Message-ID: <1589@nazgul.UUCP>
Date: 24 Jan 93 05:32:37 GMT
References: <1if5q2INN8pj@tsavo.hks.com> <1993Jan7.182757.8297@wam.umd.edu> <1569@nazgul.UUCP> <1993Jan12.153045.15612@cs.brown.edu>
Reply-To: bright@nazgul.UUCP (Walter Bright)
Organization: Zortech, Seattle
Lines: 20