Comments on DMD frontend.

Bill Baxter dnewsgroup at billbaxter.com
Fri Feb 29 06:12:39 PST 2008


Leandro Lucarella wrote:
> Bill Baxter, el 29 de febrero a las 06:56 me escribiste:
>> Julio César Carrascal Urquijo wrote:
>>> 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.
>>>>
>>>> Calling it "commonly used" is a stretch.
>>>>
>>>> But I think that being a "barrier to contributors" is a stretch as well.  File naming 
>>>> pales in comparison to the other barriers that exist.
>>>>
>>>> --bb
>>> Not as uncommon as I though:
>>> http://www.google.com/codesearch?q=file%3A%5C.c%24+%3A%3A
>>> There's a lot of C++ code using the .c extension. Specially from Mozilla and the W3C.
>> That's a good idea for a search string, but most of those hits have the '::' in a comment, 
>> and if you go look at the actual source files, they are indeed plain C code.
> 
> This is a more accurate search: "lang:c++ file:\.c$"
> It throw 334,000 results.

Most of those appear to be capital-C not lower-case c.
That's a reasonable choice for people who care only about Unix-y file 
systems.

--bb



More information about the Digitalmars-d mailing list