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: a07f3367d7,c3f4071dbfa958f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news-1.dfn.de!news.dfn.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Gavino" Newsgroups: comp.lang.ada Subject: Re: Question about SPARK flow error. Date: Sat, 19 Jun 2010 20:23:52 +0200 Message-ID: <884g9oF462U1@mid.individual.net> References: <4c1cf6a3$0$30803$4d3efbfe@news.sover.net> X-Trace: individual.net F6q0i9Lsl4mekkshh582Tg1F+0CQ5dbEC9RqxQpH/bHxaMMEIs Cancel-Lock: sha1:f3s1BMbcc6KrfLAcSfmgr+DCS+I= X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Xref: g2news2.google.com comp.lang.ada:12793 Date: 2010-06-19T20:23:52+02:00 List-Id: "Phil Thornley" wrote in message news:fd3e54b4-bff0-470a-8409-f48c3289a2f3@x27g2000yqb.googlegroups.com... > One way to get rid of the error is to introduce a 'Local_Index' that > is set in the loop; then set Index to that value after the loop if > Found is True (and your existing code if False). Doesn't that just push the flow error onto Local_Index? After all, the loop body itself may (in principle) never be executed.