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,6d79efdb8dde2c5a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!news.glorb.com!news2.glorb.com!usenet.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsgate.cuhk.edu.hk!news.netfront.net!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: SPARK : third example for Roesetta - reviewers welcome Date: Sun, 15 Aug 2010 14:40:12 -0700 Organization: Netfront http://www.netfront.net/ Message-ID: References: <87aaonlk1h.fsf@hugsarin.sparre-andersen.dk> NNTP-Posting-Host: 69.97.101.218 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 8bit X-Trace: adenine.netfront.net 1281908416 42884 69.97.101.218 (15 Aug 2010 21:40:16 GMT) X-Complaints-To: news@netfront.net NNTP-Posting-Date: Sun, 15 Aug 2010 21:40:16 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100713 Thunderbird/3.0.6 In-Reply-To: Xref: g2news1.google.com comp.lang.ada:13366 Date: 2010-08-15T14:40:12-07:00 List-Id: On 08/15/2010 01:19 PM, Yannick Duch�ne (Hibou57) wrote: > > --# pre > --# (Source'Length = 0) or else > --# (for all I in Index_Type range Source'First .. Source'Last - 1 > --# => (Source (I) <= Source (I + 1))); > -- The array must be either empty or sorted from lower to higher. Is this correct? Consider the case where Source'Length = 1. In that case, the range in the "for all" is null; does that evaluate to True? If not, then it needs to be Source'Length < 2 or else (for all ...) Even if it is correct as written, it may be misleading to non-Ada readers (whom we want to impress on Rosetta) who might think it implies an out-of-range access. -- Jeff Carter "Son of a window-dresser." Monty Python & the Holy Grail 12 --- news://freenews.netfront.net/ - complaints: news@netfront.net ---