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=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7be3870dd9c9518f X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-15 05:49:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Alfred Hilscher Newsgroups: comp.lang.ada Subject: Re: CONSTRAINT_ERROR - why? Date: Sun, 15 Dec 2002 14:45:49 +0100 Organization: T-Online Message-ID: <3DFC878D.B6966C37@t-online.de> References: <3DFB7841.F898C02@t-online.de> <3%KK9.53003$vM1.4249406@bgtnsc04-news.ops.worldnet.att.net> <3DFB8495.A655C512@t-online.de> <616gta.hk3.ln@beastie.ix.netcom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news.t-online.com 1039960039 03 8169 Dzz6ERWSSUYNgo 021215 13:47:19 X-Complaints-To: abuse@t-online.com X-Sender: 320001779794-0001@t-dialin.net X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de Xref: archiver1.google.com comp.lang.ada:31847 Date: 2002-12-15T14:45:49+01:00 List-Id: Dennis Lee Bieber schrieb: > > From the user guide: > > -gnato > Enables overflow checking for integer operations. This causes GNAT > to generate slower and larger executable programs by adding code to > check for overflow (resulting in raising Constraint_Error as required > by standard Ada semantics). These overflow checks correspond to > situations in which the true value of the result of an operation may be "... the result of an operation ..." The result of the operation "/" _does_ fit into a BYTE. > outside the base range of the result type. The following example shows > the distinction: