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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,e7f5eed426d6145 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-18 13:28:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!nycmny1-snh1.gtei.net!news.gtei.net!news-out.visi.com!hermes.visi.com!uunet!ash.uu.net!spool0900.news.uu.net!reader0900.news.uu.net!not-for-mail Date: Wed, 18 Sep 2002 16:28:51 -0400 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:1.2a) Gecko/20020912 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: C++ to Ada translator? References: <1032376330.392712@master.nyc.kbcfp.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1032380931.672974@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@fixedcost.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1032380932 reader0.ash.ops.us.uu.net 6132 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:29130 Date: 2002-09-18T16:28:51-04:00 List-Id: Robert A Duff wrote: > I don't think "preserve the character of the C++" is the goal. > The goal ought to be to produce "good" Ada code, where "good" > is measured with respect to what a good human Ada programmer > would write. The problem is dealing with the popular constructs of one language which are unavailable in the other. I already mentioned that I think templates and multiple inheritance would be difficult to translate appropriately into Ada. Going the other way, Ada code frequently makes use of arrays whose declared size is computed at runtime, including returning such arrays from functions. That would be difficult to translate to C++ in a nature-preserving way.