Comments on DMD frontend.

Walter Bright newshound1 at digitalmars.com
Wed Feb 27 23:26:07 PST 2008


Bill Baxter wrote:
> You gotta be kidding.  I've seen lots of extensions used for C++ code, 
> but never .c.
> file.cpp, file.cc, file.C, file.CC, file.cxx, file.c++, file.C++, yes 
> yes and yes.
> But never file.c.

All I can say is, I have. That's why dmc has a switch to treat .c files 
as C++ source, and it has had that switch pretty much from the beginning 
(20 years ago), from long before I gave up on using .cpp.

> Calling it "commonly used" is a stretch.

C++, from day 1, never standardized on an extension. If it had, this 
discussion would be moot.



More information about the Digitalmars-d mailing list