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-Thread: 103376,da5197b9dca0ed40 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news.mixmin.net!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: Processing array subsections, a newbie question. Date: Sat, 12 Jun 2010 21:41:18 +0200 Organization: Ada At Home Message-ID: References: <4c13db30$0$2391$4d3efbfe@news.sover.net> NNTP-Posting-Host: qFSKAKVBnqJLnfQ4StpZkg.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2 User-Agent: Opera Mail/10.53 (Win32) Xref: g2news2.google.com comp.lang.ada:12637 Date: 2010-06-12T21:41:18+02:00 List-Id: Le Sat, 12 Jun 2010 21:11:33 +0200, Peter C. Chapin = a =E9crit: > Now suppose I want to write a procedure that performs an operation on = a > subsection of a Buffer_Type object. Ultimately the code needs to be = > SPARKable > so I can't use slices (true?). Let's say I do something like I was pretty sure, however, I still checked. RavenSPARK language manual, 4.1.2, says 4.1.2 Slices Slices are not allowed in SPARK. Confirmed -- = There is even better than a pragma Assert: a SPARK --# check. --# check C and WhoKnowWhat and YouKnowWho; --# assert Ada; -- i.e. forget about previous premises which leads to conclusion -- and start with new conclusion as premise.