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=0.6 required=5.0 tests=BAYES_20,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,fd3a5ba6349a6060 X-Google-Attributes: gid103376,public From: fraser@nospam.com Subject: Re: should I be interested in ada? Date: 1999/02/20 Message-ID: <7an79j$oac$1@remarQ.com>#1/1 X-Deja-AN: 446506155 References: <7a72e6$g55$1@probity.mcc.ac.uk> <36CC11A1.C7A71642@hercii.mar.lmco.com> <7ai8ji$q8q$1@remarQ.com> X-Complaints-To: newsabuse@remarQ.com X-Trace: 919543923 KZBGBQC4S164892E1C usenet80.supernews.com Organization: Vegetarian Ada Programmers Newsgroups: comp.lang.ada Originator: fraser@titanic Date: 1999-02-20T00:00:00+00:00 List-Id: I nearly cried when matthew_heaney@acm.org said: >fraser@nospam.com writes: >> In fact, one of my favourite things about Ada is the various ways in >> which you can specify a range. I generally pick the lowest one on the >> following list that's available in the context: >> for I in 1 .. 10 loop >> for I in Low .. High loop >Perhaps I'm being pedantic, but I don't recommend these forms. It's >better to try to assert the type somehow. I sometimes see this: Maybe I was being unclear; what I mean was that the two forms above are ones I don't use. The top one in the list is the least preferred, the bottom is the most preferred. Using "Positive range 1 .. 10" instead as you suggest for the above two forms is probably wise; however it's been an awful long time since I wrote anything like that. But there you go. >> for I in Discrete_Type loop >> for I in Array_Type'Range loop >> for I in Array_Object'Range loop >I like these better. >> (I think I read this in the Quality and Style Guide). >Well, yet another guideline in that book I disagree with. Actually, I think you agree with it -- I just said it badly. cheers, Fraser. -- Fraser Wilson | 700 East Middlefield Rd | Phone: 650 943 5270 Sr R&D Engineer | Mountain View, CA 94043 | Fax: 650 934 1227 Synopsys Inc | USA | Email: ^nospam^synopsys Ada, Linux, PowerPC: The Golden Triangle