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,b36bbdc1595d0665 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news1.google.com!news.glorb.com!feeder.erje.net!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!gegeweb.org!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: SPARK code samples Date: Wed, 11 Aug 2010 18:50:55 +0200 Organization: Ada At Home Message-ID: References: <1iq8kg021bo4v$.s51i2enx3fzo.dlg@40tude.net> NNTP-Posting-Host: wRBcePl7nU3x+PaBbkDMVA.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.60 (Win32) Xref: g2news1.google.com comp.lang.ada:13129 Date: 2010-08-11T18:50:55+02:00 List-Id: Le Wed, 11 Aug 2010 18:45:33 +0200, Yannick Duch=EAne (Hibou57) = a =E9crit: > That precisely matter. If some feature are excluded, this is solely = > because they either does not enforce readability (overloading), are no= t = > predictable enough (while this depend on the state of the art) You may also add some requirements not really expressable in term featur= es = exclusion, and rather in terms of constructions, like the requirement to= = have a single exit point (multiple return statements are not allowed). = This kind-of is not a feature matter, this is an execution flow matter. = = This kind of requirements are enforced by the SPARK grammar. -- = 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.