From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 109fba,902ca30f0b159463 X-Google-Attributes: gid109fba,public X-Google-Thread: f43e6,902ca30f0b159463 X-Google-Attributes: gidf43e6,public X-Google-Thread: 103376,fb0b798bad19582b,start X-Google-Attributes: gid103376,public X-Google-Thread: 1108a1,902ca30f0b159463 X-Google-Attributes: gid1108a1,public From: Ken Garlington Subject: Re: Moving from C to C++ Date: 1996/02/22 Message-ID: <312C9D60.286D@lfwc.lockheed.com>#1/1 X-Deja-AN: 140821852 references: <4fak3f$3op@news4.digex.net> <1996Feb9.233739.24043@amc.com> <4g8ctn$7do@news4.digex.net> <4g9jos$7cl@soap.news.pipex.net> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Tactical Aircraft Systems mime-version: 1.0 newsgroups: comp.object,comp.software-eng,comp.lang.c++,comp.lang.ada x-mailer: Mozilla 2.0 (Macintosh; I; 68K) Date: 1996-02-22T00:00:00+00:00 List-Id: Dirk Wessels wrote: > > Hello, > > I implemented inheritance in C by making a function-table for each class > and calling the functions indirectly. > While I wanted to use C++ needed to use this because: Perhaps you should have considered using Ada. > 1. The system should be compatible with almost any other platform. > Only GNU-C++ was fully compatible accross platforms, > but was not available for all versions of Unix. Ada is available on a variety of platforms. > 2. The program should be readable by other programmers. > Most other programmers only knew C. Ada is quite readable - in fact, it was designed to be this way. > 3. The other parts of the system were build in C and Fortran. > If you are adding C++ as well to the language-set it gets > very hard to fit them together. Ada has explicit support for operation with other languages such as C and Fortran. > 4. The program should be able to compile for quite a few years. > The C++ standard was changing and still is. Ada is an ISO standard (the first ISO standard for a full object-oriented language, in fact), and is quite stable.