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 427634
To view parent comment, click here.
To read all comments associated with this story, please click here.
RE: LLVM
by google_ninja on Wed 2nd Jun 2010 01:44 UTC in reply to "LLVM"
google_ninja
Member since:
2006-02-05

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

Reply Parent Score: 1

RE[2]: LLVM
by Elv13 on Wed 2nd Jun 2010 02:05 in reply to "RE: LLVM"
Elv13 Member since:
2006-06-12

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

RE[3]: LLVM
by google_ninja on Wed 2nd Jun 2010 02:28 in reply to "RE[2]: LLVM"
google_ninja Member since:
2006-02-05

you are talking about idioms more then anything, I mean, you can do OO in C and you can do procedural in C++. I don't think they intend to do sweeping architectural changes or anything like that. Also, anything that is valid c is also valid c++, that makes c++ a superset of c, not just based on it. You could say java is at least partially based on c++, that doesn't mean you can compile c++ code to java.

Reply Parent Score: 2

RE[2]: LLVM
by tyrione on Wed 2nd Jun 2010 04:37 in reply to "RE: LLVM"
tyrione Member since:
2005-11-21

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

RE[2]: LLVM
by Timmmm on Wed 2nd Jun 2010 08:52 in reply to "RE: LLVM"
Timmmm Member since:
2006-07-25

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