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++


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.

Well it is interesting to note that the use of dynamic dispatching in safety-critical programs is extremetly problematic, and it is not at all clear that FAA certification could be achieved for programs using such techniques. Why? Because MCDC testing is very difficult for such programs. In Ada, people often entirely reject the use of the USE clause since they want to know immediately where any external reference, including most importantly calls, is going, so they want fully qualified names designating the declaration target. Virtual functions really conflict with that goal. So far from seeming un-brittle, to me dynamic dispatching can be very troublesome.

Sure, really good coders can do things clearly in any language,
I have delivered perhaps 600-700,000 lines of assembly language
programs for commercial environments, including one complete
operating system, that I consider to be better organized and
better documented than 99% of the code I see in any other
language, but that does not mean I recommend that things
be coded in assembly language :-)


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