Linked by Thom Holwerda on Tue 1st Jun 2010 15:12 UTC
General Development "I am pleased to report that the GCC Steering Committee and the FSF have approved the use of C++ in GCC itself. Of course, there's no reason for us to use C++ features just because we can. The goal is a better compiler for users, not a C++ code base for its own sake. Before we start to actually use C++, we need to determine a set of coding standards that will apply to use of C++ within GCC."
Thread beginning with comment 427515
To read all comments associated with this story, please click here.
by big_gie on Tue 1st Jun 2010 16:34 UTC
Member since:

GCC faces strong competition from LLVM, which is written in C++. Many people prefer C++ over C, as it "feels" more modern.
This move is surely to attract new developpers. Personnally, I don't like mixing languages in a project: it tends to be confusing. Just look at how it can be confusing to have multiple coding style in a project. Now imagine different languages...

As for the user point of view, it probably won't change much, if nothing at all.

Reply Score: 10

by google_ninja on Wed 2nd Jun 2010 01:44 in reply to "LLVM"
google_ninja Member since:

c++ is a superset of c though, so it isn't really mixing languages.

Reply Parent Score: 1

by Elv13 on Wed 2nd Jun 2010 02:05 in reply to "RE: LLVM"
Elv13 Member since:

But now, both C and C++, so procedural and object oriented code are going to be blended in the code, so yes, it will be 2 languages, even if one is based on the other, they share only the same syntax.

Reply Parent Score: 2

by tyrione on Wed 2nd Jun 2010 04:37 in reply to "RE: LLVM"
tyrione Member since:

c++ is a superset of c though, so it isn't really mixing languages.

Sorry, but Objective-C is a strict superset of C.

C++ was intended to be a better C with Classes.

Reply Parent Score: 3

by Timmmm on Wed 2nd Jun 2010 08:52 in reply to "RE: LLVM"
Timmmm Member since:

c++ is a superset of c though, so it isn't really mixing languages.

Not quite any more. The latest version of C has several features that C++ doesn't - structure and array initialisation in particular.

Also, C++ has a different ABI to C so you have to add extern "C" things to all your headers...

Reply Parent Score: 2

by chris_l on Wed 2nd Jun 2010 02:45 in reply to "LLVM"
by big_gie on Wed 2nd Jun 2010 02:57 in reply to "RE: LLVM"
big_gie Member since:

Get real. It won't make any real difference just like LLVM itself won't make any real difference.

If my C code works just fine as is, what the fracking point of converting it to C++?

There isn't any.

To appease fracking assholes like you?

Get a fracking life you wanker......

Wow... what a great post. I've never said _anything_ about converting code. Please learn how to read.
LLVM _is_ doing a difference right now: more competition in a free market is always good for the consumer.
And why so much hate? In the end, it's a "fracking" compiler we are talking about, there is no life at stake!

Reply Parent Score: 2