This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Converting GCC to compilation with C++


Paolo Bonzini:
>> I would remove from my subset overloading, any kind of
>> inheritance
>
> Inheritance seems to me the most rewarding point in switching to C++.
> C++ without inheritance is strongly typed C.
>
>> , virtual functions
>
> Given the current amount of hooking in GCC (target, host, language,
> profiling, RTL) virtual functions seem worthwhile too.

I'm amazed at seeing how people prefer brittle hacks to working
codes.  Virtual functions are guranteed to be set properly,
once for while.  Currently, we do not have such invariants and
we have to do everything hands with more opportunities to make
mistakes.

-- Gaby


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]