This is the mail archive of the gdb@sourceware.org mailing list for the GDB 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: Will therefore GDB utilize C++? Not.


On 4/6/2012 7:32 PM, John Gilmore wrote:
And yet, that's exactly what we are doing:
   - unit elaboration;
   - gdbarch/language dispatching
   - exception handling
   - use of unions to emulate polymorphism;

Writing modular programs is a good idea even if we don't do it in C++. I have heard it claimed that many techniques of modular programming were even invented before C++ existed - though that may be doubted.

Doubted by whom? Certainly not by anyone with any awareness of the history of programming languages. The notions of modular programming existed LONG LONG before C++ was invented and are represented in many programming languages! Next someone will be thinking that C++ invented object oriented programming :-)

PPS: What is "unit elaboration" and what does that have to do with
GDB?  All I can find from a quick web search is that it has something
to do with Ada.  Perhaps other languages don't do it -- or have
another name for it.  "Linking"?  Are you sure we shouldn't rewrite
bits of GDB in Ada instead of C++?

:-)



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