comp.lang.ada
 help / color / mirror / Atom feed
From: gautier_niouzes@hotmail.com
Subject: Re: integers of 1, 2, 4 bytes
Date: Mon, 16 Jun 2014 10:27:28 -0700 (PDT)
Date: 2014-06-16T10:27:28-07:00	[thread overview]
Message-ID: <8b64a298-c50f-4598-8aaa-3ca7c6d666b2@googlegroups.com> (raw)
In-Reply-To: <c0654eFaetvU1@mid.individual.net>

> I want to translate some of my Oberon programs to Ada.

An OT advice from the experience of a few translations Modula-2 to Ada (guessing Oberon is same as M2 on these points): be careful with the following:
- M2 is case-sensitive, Ada not
- Ada's parameter passing rules are different
- Ada has no WITH instruction; you deal with a "rename" declaration

A not-so-bad way is to use a M2-Pascal translator, then the p2ada translator.
Especially the WITH instruction is correctly and automatically translated by p2ada (because there is a quasi Pascal compiler under the hood).
_________________________
Gautier's Ada programming
http://gautiersblog.blogspot.com/search/label/Ada
NB: follow the above link for a valid e-mail address


      parent reply	other threads:[~2014-06-16 17:27 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-15 17:57 integers of 1, 2, 4 bytes hreba
2014-06-15 18:43 ` Dmitry A. Kazakov
2014-06-15 20:52   ` hreba
2014-06-15 19:07 ` Niklas Holsti
2014-06-15 21:25   ` hreba
2014-06-15 22:39     ` Georg Bauhaus
2014-06-16 13:37       ` AdaMagica
2014-06-16  4:46     ` J-P. Rosen
2014-06-15 19:26 ` Stefan.Lucks
2014-06-15 21:31   ` hreba
2014-06-15 21:55     ` Niklas Holsti
2014-06-15 22:09 ` Jeffrey Carter
2014-06-16 15:38 ` Adam Beneschan
2014-06-16 17:27 ` gautier_niouzes [this message]
replies disabled

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