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-Thread: 103376,d679dd7e9c16805a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad.newshosting.com!newshosting.com!198.186.194.249.MISMATCH!news-out.readnews.com!transit3.readnews.com!panix!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Selective suppression of warnings --- gnat on GNU/Linux Date: Wed, 31 Dec 2008 15:01:41 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <7a6baa71-80e8-4f3a-80b6-34935bda2fc0@r10g2000prf.googlegroups.com> <42ffjg.s9b.ln@hunter.axlog.fr> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: pcls4.std.com 1230753701 8121 192.74.137.71 (31 Dec 2008 20:01:41 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 31 Dec 2008 20:01:41 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:uDIyzzIDWQQqZfIuBJ74V9iq1WY= Xref: g2news1.google.com comp.lang.ada:3159 Date: 2008-12-31T15:01:41-05:00 List-Id: Jean-Pierre Rosen writes: > Robert A Duff a �crit : >> If that's true, then we must presume that the Pascal >> programmer already made sure that calculations won't >> overflow > Sigh... I'm afraid you are over-optimistic here Not really. I didn't say "programmer made sure...", I said we must presume they did. Not because it's true, but because we have no choice. ;-) ;-) >> Or else there's a bug in the Pascal code, >> and we're going to translate that into the same >> bug in the Ada code. > I agree that the translator can't do any better. > >> type Pascal_Integer is range ...; >> subtype T is Pascal_Integer range A..B; >> where the rangs of Pascal_Integer is chosen to >> match the Pascal compiler -- obviously you have >> to know something about the Pascal compiler. > This is a good idea, and shows the Pascal legacy for the future maintainer. - Bob