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,af40877501f46910 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news3.google.com!feeder.news-service.com!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: SPARK understand me very well... me neither Date: Sun, 15 Aug 2010 02:45:51 +0200 Organization: Ada At Home Message-ID: References: <2308d0a0-8fdb-41a0-b2dc-6b30a2bf2f18@v41g2000yqv.googlegroups.com> NNTP-Posting-Host: vW41ugf3bPGxhjQJ6q2hXA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; 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.61 (Win32) Xref: g2news1.google.com comp.lang.ada:13312 Date: 2010-08-15T02:45:51+02:00 List-Id: Le Sat, 14 Aug 2010 23:50:08 +0200, Jeffrey Carter = a =C3=A9crit: >> But what seems important to me and I would to underline, was also tha= t >> if I did not knew this was possible, this was because it was fr from = my >> mind. And this was far from my mind, because looking at it as-is, I >> would have said =E2=80=9Cwhat does it prove ? what does it offer ?=E2= =80=9D. In short, >> this looks like a bad logical interface to me. > > It doesn't prove anything, and it's not supposed to. It's a = > precondition. It says, "This precondition must be true for this = > operation to give correct results." It is the caller's duty to meet th= e = > precondition. Reading you again, I understand I did not choose the good words. I shoul= d = have said =E2=80=9Cwhat does it defines ?=E2=80=9D (like defining what a= valid context is, = in a concrete way). Otherwise yes, this does not have to prove anything,= = and this can't, because nothing is provable at this level. -- = 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.