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,da5197b9dca0ed40 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!feeder.news-service.com!feeder.news-service.com!85.214.198.2.MISMATCH!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Processing array subsections, a newbie question. Date: Tue, 15 Jun 2010 07:13:50 +0100 Organization: A noiseless patient Spider Message-ID: References: <4c13db30$0$2391$4d3efbfe@news.sover.net> <4c16c088$0$2366$4d3efbfe@news.sover.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Date: Tue, 15 Jun 2010 06:13:50 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="23365"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19ZRQ7Rd9zRmO7JRdcYyfrKEvEo3L4O9r8=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (darwin) Cancel-Lock: sha1:PdCKqGEf7fTnwbgSOhSHrP5ZTJk= Xref: g2news2.google.com comp.lang.ada:12714 Date: 2010-06-15T07:13:50+01:00 List-Id: "Peter C. Chapin" writes: > Simon Wright wrote: > >> Colin Paul Gloster writes: >> >>> I really do not approve of the names Index_Fst and Index_Lst. >> >> Quite agree. What's wrong with First and Last? (or even if it wasn't >> obvious already Index_First, Index_Last). > > 'First' and 'Last' are reserved by SPARK as FDL identifiers. Similarly > 'Start' and 'Finish' are reserved by SPARK. Obviously 'Begin' and > 'End' is not going to work either since they are reserved by Ada. So > while I rather dislike 'Fst' and 'Lst' I found it awkward finding a > suitable matched pair of names that would otherwise convey my > intention. > > In my actual program the index variables are named differently than in > my example anyway. However, I admit that I have used 'Fst' and 'Lst' > at times in my code since I couldn't think of anything else that > wasn't reserved. I probably lack imagination. Oops, I didn't know that. A shame that to make code provable you have to make it unreadable.