comp.lang.ada
 help / color / mirror / Atom feed
From: Hyman Rosen <hyrosen@mail.com>
Subject: Re: C++ to Ada translator?
Date: Wed, 18 Sep 2002 16:28:51 -0400
Date: 2002-09-18T16:28:51-04:00	[thread overview]
Message-ID: <1032380931.672974@master.nyc.kbcfp.com> (raw)
In-Reply-To: wccwupj9htf.fsf@shell01.TheWorld.com

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.




  reply	other threads:[~2002-09-18 20:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-18 13:58 C++ to Ada translator? Ivan Paniagua
2002-09-18 19:12 ` Hyman Rosen
2002-09-18 20:14   ` Robert A Duff
2002-09-18 20:28     ` Hyman Rosen [this message]
2002-09-19 14:29   ` Wes Groleau
2002-09-19 23:28     ` Ira Baxter
2002-09-20 16:12       ` Wes Groleau
2002-09-21 15:54         ` Ira Baxter
2002-09-18 19:50 ` Ira Baxter
2002-09-18 20:18   ` Hyman Rosen
2002-09-18 20:33     ` Robert A Duff
2002-09-19 13:37       ` Hyman Rosen
2002-09-19 13:40     ` Ira Baxter
2002-09-19 14:38       ` Frank J. Lhota
2002-09-19 15:15         ` OT: Russian to English translator? Frank J. Lhota
2002-09-19 17:17           ` Wes Groleau
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox