DMD build

Andrei Alexandrescu SeeWebsiteForEmail at erdani.org
Fri Dec 28 12:36:21 PST 2012


On 12/28/12 2:21 PM, John Colvin wrote:
> On Friday, 28 December 2012 at 19:06:05 UTC, Walter Bright wrote:
>> On 12/28/2012 7:51 AM, Russel Winder wrote:
>>> On Fri, 2012-12-28 at 16:30 +0100, David Nadlinger wrote:
>>>> DMD is actually written in C++, Walter just chose file names
>>>> ending in .c for some strange reason.
>>>
>>> I can understand using C++ rather than C, but (sorry Walter) naming the
>>> files X.c is a f###### stupid idea. The standard name strategy is one of
>>> X.C, X.cc, or X.cpp, for very good reasons.
>>>
>>
>> Yeah, the standard name is .C, or is it .cc, or is it .cpp, or is it
>> .cxx (I've seen that "standard" one, too), and are headers .hxx or is
>> the standard .hpp or whatever.
>>
>> Hell, I've even seen .c++
>>
>> It's about the most non-standard "standard" I've ever encountered :-)
>
> I guess the convention is "Anything that is clear as to language the
> file contains".
>
> ".cpp" and ".cxx" are both very good at that. ".cc" is less good, ".C"
> is even worse. All of them are better than ".c"

I wondered how much work it takes so I just created a fork that renames 
all relevant .c files to .cpp.

https://github.com/andralex/dmd/tree/extensions

Works on OSX just swell and took me little more than 5 minutes. Anyone 
wants to take that over and make it work for Windows too?


Andrei


More information about the Digitalmars-d mailing list