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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.249.115 with SMTP id yt19mr1574818obc.25.1402939648566; Mon, 16 Jun 2014 10:27:28 -0700 (PDT) X-Received: by 10.140.92.77 with SMTP id a71mr385290qge.0.1402939648539; Mon, 16 Jun 2014 10:27:28 -0700 (PDT) Path: border2.nntp.dca3.giganews.com!backlog4.nntp.dca3.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!a13no4363639igq.0!news-out.google.com!q9ni6501qaj.0!nntp.google.com!w8no3344695qac.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 16 Jun 2014 10:27:28 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2a02:120b:2c65:e670:d18f:ecf8:a280:c38e; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG NNTP-Posting-Host: 2a02:120b:2c65:e670:d18f:ecf8:a280:c38e References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <8b64a298-c50f-4598-8aaa-3ca7c6d666b2@googlegroups.com> Subject: Re: integers of 1, 2, 4 bytes From: gautier_niouzes@hotmail.com Injection-Date: Mon, 16 Jun 2014 17:27:28 +0000 Content-Type: text/plain; charset=ISO-8859-1 X-Original-Bytes: 1897 Xref: number.nntp.dca.giganews.com comp.lang.ada:186980 Date: 2014-06-16T10:27:28-07:00 List-Id: > 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