This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Using C++ in GCC is OK
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: gcc at gcc dot gnu dot org
- Date: Thu, 3 Jun 2010 23:46:09 +0100
- Subject: Re: Using C++ in GCC is OK
- References: <4C030228.8020201@codesourcery.com> <AANLkTimzVEXsE4vOZJuegnHFu-pVyNdKImcasoSX_ZDc@mail.gmail.com> <4C039253.5080406@adacore.com> <AANLkTikp-gTh4bCpAFYWhU7fR9tBTxOP6mQp9TAfideB@mail.gmail.com> <4C03EB8D.6010307@codesourcery.com> <87k4qf7vtv.fsf@edwards.hjemme.lan>
On 3 June 2010 20:35, Steinar Bang wrote:
>>>>>> Mark Mitchell <mark@codesourcery.com>:
>
>> I think virtual functions are on the edge; quite useful, but do result
>> in the compiler adding a pointer to data objects and in uninlinable
>> indirect calls at run-time. ?Therefore, I would avoid them in the
>> initial subset of C++ used in GCC.
>
> Umm...? ?Virtual functions are _the_ core C++ feature for creating OO
> frameworks.
>
> Allowing C++ but avoiding virtual functions seems odd to me.
C++ is not an OO language.
http://www2.research.att.com/~bs/bs_faq.html#Object-Oriented-language