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=0.6 required=5.0 tests=BAYES_05,INVALID_DATE autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-lcc!ames!ucbcad!ucbvax!JPL-VLSI.ARPA!larry From: larry@JPL-VLSI.ARPA Newsgroups: comp.lang.ada Subject: C++ as a way to use private types in C Message-ID: <870318190934.056@Jpl-VLSI.ARPA> Date: Wed, 18-Mar-87 22:09:34 EST Article-I.D.: Jpl-VLSI.870318190934.056 Posted: Wed Mar 18 22:09:34 1987 Date-Received: Fri, 20-Mar-87 05:24:32 EST Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet List-Id: -- If you want private types in C the best way is to get a C++ to C translator. There are at least three available for the PC family and several for various minis. (I understand AT&T has compilers (as opposed to translators) for some of their 3B computers also.) C++ is very similar to Ada, except for tasking where the older C-style facilities are used. It's also upwardly compatible with C except for some minor details; for instance, you can't use the about a half-dozen keywords C++ uses. It also has an advantage over Ada in that functions are data objects, so can be passed as parameters, etc. C++ also has a number of disadvantages, most fostered by a need to remain compatible with C felt by its its designers (primarily Bjourne Stroustrup but with a lot of input from the prime C theorists at AT&T). Has anyone on the list done a detailed comparison between C++ and Ada? Larry @ jpl-vlsi.arpa