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!news3.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Selective suppression of warnings --- gnat on GNU/Linux Date: Wed, 31 Dec 2008 17:13:21 +0100 Organization: Adalog Message-ID: References: <7a6baa71-80e8-4f3a-80b6-34935bda2fc0@r10g2000prf.googlegroups.com> <42ffjg.s9b.ln@hunter.axlog.fr> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1230735896 19385 195.25.228.57 (31 Dec 2008 15:04:56 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 31 Dec 2008 15:04:56 +0000 (UTC) User-Agent: Thunderbird 2.0.0.18 (Windows/20081105) In-Reply-To: Xref: g2news1.google.com comp.lang.ada:3153 Date: 2008-12-31T17:13:21+01:00 List-Id: 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 > 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. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr