DMD build

Brad Roberts braddr at slice-2.puremagic.com
Fri Dec 28 13:39:14 PST 2012


On Fri, 28 Dec 2012, Andrei Alexandrescu wrote:

> 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

What impact does this have on the open pull requests?  If it's going to 
suddenly break every one of them, then I think it's a particularly bad 
idea.  The benefit is debatable and the cost is pretty annoying.


More information about the Digitalmars-d mailing list