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,c39ad3e35a7690a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.213.68 with SMTP id nq4mr2057768pbc.2.1329346589799; Wed, 15 Feb 2012 14:56:29 -0800 (PST) Path: wr5ni29563pbc.0!nntp.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Convention for naming of packages Date: Wed, 15 Feb 2012 17:56:29 -0500 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <4f355230$0$21451$ba4acef3@reader.news.orange.fr> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 X-Trace: pcls6.std.com 1329346589 19493 192.74.137.71 (15 Feb 2012 22:56:29 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Wed, 15 Feb 2012 22:56:29 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:DCNrntYSzPa5RTDaiakqGGN0b4c= Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Date: 2012-02-15T17:56:29-05:00 List-Id: "J-P. Rosen" writes: > Le 15/02/2012 05:09, Simon Wright a �crit : >> I've adopted AdaCore's convention to use J instead of the (potentially >> confusing) I in >> >> for J in Foo'Range loop > > Recently, I adopted the convention to use the first letter of the array > (rather than the systematic I): > > for T in Tab'range... > for A in Arr'range... The issue of what to call the array index largely disappears in Ada 2012, because you can loop through the array components, rather than looping through the indices and then doing indexing. - Bob