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,e7f5eed426d6145 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-18 13:34:22 PST Newsgroups: comp.lang.ada Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!news.tufts.edu!uunet!dca.uu.net!ash.uu.net!world!news From: Robert A Duff Subject: Re: C++ to Ada translator? Sender: news@world.std.com (Mr Usenet Himself) Message-ID: Date: Wed, 18 Sep 2002 20:33:38 GMT References: <3d88d8bf$1@giga.realtime.net> <1032380280.239075@master.nyc.kbcfp.com> NNTP-Posting-Host: shell01.theworld.com Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.7/Emacs 20.7 Xref: archiver1.google.com comp.lang.ada:29131 Date: 2002-09-18T20:33:38+00:00 List-Id: Hyman Rosen writes: > Ira Baxter wrote: > > Lots of icky details invariably show up. > > I meant templates and multiple inheritance when I talked > about losing the C++ nature in the translated code. Yes, these are rather difficult problems. But I think the way to judge these things is to think about what a good human programmer would write in Ada, in a case where a good C++ programmer chose to use, say, multiple inheritance. It seems unfair to expect *more* from a tool than one could expect from a human programmer. The fact that multiple inheritance translates into something less readable in Ada is not the fault of the translator -- it's caused by the fact that Ada doesn't have multiple inheritance. (This of course presumes that you believe multiple inheritance makes for readable code, at least in *some* cases. Some would dispute that, but it's irrelevant to my main point.) - Bob