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: 103376,da5197b9dca0ed40 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!eternal-september.org!.POSTED!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Processing array subsections, a newbie question. Date: Wed, 16 Jun 2010 21:22:09 +0200 Organization: A noiseless patient Spider Message-ID: <87wrtyn5pa.fsf@ludovic-brenta.org> References: <4c13db30$0$2391$4d3efbfe@news.sover.net> <8739wsottd.fsf@ludovic-brenta.org> <87jc41FftrU1@mid.individual.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Wed, 16 Jun 2010 19:22:09 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="BhTdydA5R1inveicbUt27Q"; logging-data="28587"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5T7Aj80TbWdsliRpM+qn3" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) Cancel-Lock: sha1:Ilw2L0lymZ+by0xlUdK2hoAHyOA= sha1:ZWT9IupeF9pu/MzqKp5wT7S4xtE= Xref: g2news2.google.com comp.lang.ada:12759 Date: 2010-06-16T21:22:09+02:00 List-Id: "Jeffrey R. Carter" writes: > So it looks to me as if the correct test is > > exit when Index_Lst [>]= Buffer'Last; > > (Maybe Brenta meant this, and mistyped it; the variable names are very > similar. Using _First and _Last might make such an error more > obvious.) Yes, that's what I meant, and I agree with you. In addition, Stephe's suggestion to replace Index_Fst and Index_Lst with a single Index, passed in out to Do_Something, is even better. -- Ludovic Brenta.