From: "wiljan" <W.Derks@nl.cis.philips.com>
Subject: Re: Pascal to Ada translator/ aflex,ayacc GNAT ports
Date: 1996/11/30
Date: 1996-11-30T00:00:00+00:00 [thread overview]
Message-ID: <01bbde93$a09ea190$0d208b82@wd> (raw)
In-Reply-To: dewar.849318953@merv
Robert Dewar <dewar@merv.cs.nyu.edu> wrote in article
<dewar.849318953@merv>...
> I am confused, you seem to be talking in generalities (which are in fact
> reasonable), but you don't seem to talk to this specific case. Can you
> show an example where you think it is inappropriate to translate the
> Pascal "with" into an Ada renaming?
I think that when one has:
type rec=record a,b:integer end;
var x:rec;
....
with x do a:=3;
is best translated to
x.a:=3;
With a rename it whould look like:
x1:rec renames x;
x1.a:=3;
Note that when translating to an Ada renaming one must add extra names
which also does not attribute to clear code.
Wiljan
next prev parent reply other threads:[~1996-11-30 0:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-11-27 0:00 Pascal to Ada translator/ aflex,ayacc GNAT ports Martin C. Carlisle
1996-11-27 0:00 ` Michael Feldman
1996-11-28 0:00 ` steved
1996-11-29 0:00 ` Robert Dewar
1996-11-29 0:00 ` wiljan
1996-11-29 0:00 ` Robert Dewar
1996-11-30 0:00 ` wiljan [this message]
1996-11-30 0:00 ` Robert Dewar
1996-12-01 0:00 ` wiljan
1996-12-01 0:00 ` Michael Feldman
1996-12-01 0:00 ` Robert Dewar
1996-12-02 0:00 ` Laurent Gasser
1996-12-02 0:00 ` Larry Kilgallen
1996-12-02 0:00 ` Jacques Rouillard
1996-11-29 0:00 ` Larry Kilgallen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox