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,6d79efdb8dde2c5a X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!not-for-mail From: =?iso-8859-15?Q?Yannick_Duch=EAne_=28Hibou57=29?= Newsgroups: comp.lang.ada Subject: Re: SPARK : third example for Roesetta - reviewers welcome Date: Mon, 16 Aug 2010 18:42:42 +0200 Organization: Ada At Home Message-ID: References: <589eea9a-0b14-4ae5-bf62-9abf4b33e7fb@i31g2000yqm.googlegroups.com> NNTP-Posting-Host: k3GxHhLOzON8NRi+WQWeSw.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.61 (Win32) Xref: g2news1.google.com comp.lang.ada:13416 Date: 2010-08-16T18:42:42+02:00 List-Id: Le Mon, 16 Aug 2010 07:51:42 +0200, Phil Thornley = a =E9crit: > But if you put that test back in you are going to get flow errors for > the added path - because Position will be exported but no value will > be assigned to it. The flow error was easily worked around > For the examples in Rosetta Code we should just state that assumption > in the accompanying text, since these code samples are for > demonstrating language features rather than providing a source code > library. Good point for that case! Thanks In the real world now: I understand your point about what a SPARK progra= m = is really. But do you see a reason why SPARK should disallow defensive = programming ? (forget about the suggestion to handle empty array in SPAR= K, = this was silly, but defensive programming may not be)