home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c++
- Path: sparky!uunet!panther!mothost!lmpsbbs!mcil.comm.mot.com!davidk
- From: davidk@mcil.comm.mot.com (David Kramer)
- Subject: Re: Need help justifying C++ over Ada
- Organization: Motorola Communications Israel Ltd., Tel Aviv
- Date: Sun, 24 Jan 1993 13:21:49 GMT
- Message-ID: <1993Jan24.132149.16453@lmpsbbs.comm.mot.com>
- References: <1993Jan12.223715.22865@nosc.mil> <GALLINAT.93Jan18105916@dana.sono.uucp> <1993Jan19.073720.23450@lmpsbbs.comm.mot.com> <1993Jan21.130427.12611@afit.af.mil>
- Sender: davidk@comm.mot.com (David Kramer)
- Nntp-Posting-Host: 145.9.18.30
- Lines: 35
-
- In article <1993Jan21.130427.12611@afit.af.mil>, cbrooks@afit.af.mil (Christopher L Brooks) writes:
- |> davidk@mcil.comm.mot.com (David Kramer) writes:
- |> > - With C++ you can easily plug in already existing C code - including
- |> > #include files.
- |>
- |> I'm not sure whether your argument here is re-use/modification or just
- |> interfacing. We've never had any problems here talking to C or C++
- |> from Ada - in fact, we do it all the time. We've always found it
- |> easiest to make the Ada program the "main" program however.
- |>
-
- Ada does make it easy to interface with object files of other languages.
- What I was refering to (and I admit I did not make myself clear) is the
- ability to use/reuse existing definitions (#defines, enums, structs,
- typedefs...) directly.
-
- For instance, I worked on a project which was developed in C where all the
- definitions that were used to interface to an external program were defined
- in one .h file. I wrote a simulator in C++ for the other side of that interface,
- and was able to use that .h file directly. This insured that both sides
- of the interface would have consistant definitions and that if something
- changed in the definitions 'make' would rebuild both programs.
-
- If I wanted to write the simulator in Ada I would have had to rerepresent
- those definitions in Ada - which would complicate maintenance (a change to
- the .h file would necesitate a change to the Ada code).
-
- Personally, I would prefer Ada for most applications. But the advantages
- of C++ sometimes outweigh other considerations.
-
- --
- [ David Kramer | INTERNET: davidk@mcil.comm.mot.com ]
- [ Motorola Communications Israel Ltd. | Phone (972-3) 565-8638 Fax 565-8754 ]
-
-
-