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: a07f3367d7,caabf5265fad78e5 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.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: unsigned type Date: Fri, 03 Jul 2009 09:07:16 +0200 Organization: Adalog Message-ID: References: <273dedb7-8d68-42d2-8602-aa44c79f3708@b9g2000yqm.googlegroups.com> <4b83m.98382$d36.15650@bgtnsc04-news.ops.worldnet.att.net> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1246597874 12376 195.25.228.57 (3 Jul 2009 05:11:14 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Fri, 3 Jul 2009 05:11:14 +0000 (UTC) User-Agent: Thunderbird 2.0.0.22 (Windows/20090605) In-Reply-To: <4b83m.98382$d36.15650@bgtnsc04-news.ops.worldnet.att.net> Xref: g2news2.google.com comp.lang.ada:6820 Date: 2009-07-03T09:07:16+02:00 List-Id: anon a �crit : > -- Adam. > -- Now, can you please explain the results from this program. Please don't try to make things more complicated than they are. The rule is simple: no bounds checking on null arrays. Full stop. Or if you prefer, here is how the check happens: if S'Last >= S'First then if S'Last not in S'Range or S'First not in S'Range then raise Constraint_Error; end if; end if; -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr