That statement was first stated by King Mir. It was refuted by me before anyone else. (Actually quzah agreed to it in his/her June 16 3:17PM post.)Originally Posted by anonytmouse
Maybe someone tried to explain that a C compiler will not compile C++ code, though I already said that I understood it. But I think some people also tried to tell me that a C program (to be compiled by a C compiler) cannot call a C++ function compiled by a C++ compiler. And I think this is not just "my problem"; obviously this is the problem of some other C++ programmers. I would like to set the record straight here so that others can benefit. It is not that I would not be satisfied until somebody told me that I am totally right; it does not matter whether I am right or wrong. It matters what is right or wrong and why.Originally Posted by citizen
To me, the big question is never whether I would argue with someone; it is what the truth is. If the pursuit of knowledge requires me to argue with Stroustrup, I will.
Well, I think my interpretation is correct; but someone disagreed. Therefore, for the benefit or myself, those who disagree, and whoever in the future who want to learn in this topic, why not ask Stroustrup and document it here?Originally Posted by anonytmouse
If you read all my posts, you should have read my response to it.Originally Posted by anonytmouse
Here is Stroustrup's reply:
From : Bjarne Stroustrup <bs at cs . tamu . edu>
Sent : Sunday, June 18, 2006 2:56 AM
Subject : Re: Correct intepretation of your comments on C++
Maybe this clarifies things?:
http://www.research.att.com/~bs/bs_faq2.html#callC
http://www.research.att.com/~bs/bs_faq2.html#callCpp
Note that ``extern "C"'' can appear only in a C++ program. C doesn't have a corresponding ``extern "C++"''