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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bba87bb831d869b6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-16 18:22:44 PST Path: archiver1.google.com!news2.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Make C++ via Ada95/Gnat ? Date: 16 Aug 2001 18:22:43 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0108161722.2bf90e39@posting.google.com> References: <9lg0gs$9dv$1@snipp.uninett.no> NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 998011364 1358 127.0.0.1 (17 Aug 2001 01:22:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 17 Aug 2001 01:22:44 GMT Xref: archiver1.google.com comp.lang.ada:12024 Date: 2001-08-17T01:22:44+00:00 List-Id: Reinert Korsnes wrote in message news:<9lg0gs$9dv$1@snipp.uninett.no>... > Hi, > > Is it possible/practical to produce C++ code by first making Ada95 code > and then from this produce C++ (via Gnat) ? Just a bad idea ? > > (I would prefer to make/test Ada95 code rather than C++) > > reinert No, it is not possible to translate Ada to C++ using GNAT, since in no sense does GNAT translate Ada to either C or C++ during compilation. There is no technology I am aware of that can translate Ada code to high level C++ code, nor is it easy to conceive of anything that would achieve a 100% translation that resulted in useful and readable C++, so the conception here is basically flawed. If you want C++ you must write in C++ :-(