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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c4cb2c432feebd9d X-Google-Thread: 1094ba,c4cb2c432feebd9d X-Google-Attributes: gid103376,gid1094ba,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news4.google.com!news3.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!ken-transit.news.telstra.net!ken-in.news.telstra.net!news.telstra.net!news-server.bigpond.net.au!53ab2750!not-for-mail From: "robin" Newsgroups: comp.lang.ada,comp.lang.fortran References: <0ugu4e.4i7.ln@hunter.axlog.fr> <%P_cg.155733$eR6.26337@bgtnsc04-news.ops.worldnet.att.net> <6H9dg.10258$S7.9150@news-server.bigpond.net.au> <1hfv5wb.1x4ab1tbdzk7eN%nospam@see.signature> <4475DA61.3080001@comcast.net> <44762F55.4050106@cits1.stanford.edu> <87hd3d1472.fsf@ludovic-brenta.org> <3cBdg.6255$oa3.2407@trnddc08> Subject: Re: Bounds Check Overhead 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 Message-ID: Date: Sat, 27 May 2006 14:29:34 GMT NNTP-Posting-Host: 144.139.71.84 X-Complaints-To: abuse@bigpond.net.au X-Trace: news-server.bigpond.net.au 1148740174 144.139.71.84 (Sun, 28 May 2006 00:29:34 EST) NNTP-Posting-Date: Sun, 28 May 2006 00:29:34 EST Organization: BigPond Internet Services Xref: g2news2.google.com comp.lang.ada:4542 comp.lang.fortran:10354 Date: 2006-05-27T14:29:34+00:00 List-Id: "Dan Nagle" wrote in message news:3cBdg.6255$oa3.2407@trnddc08... > Ludovic Brenta wrote: > > And that's why Ada specifies that I cannot change inside the loop, and > > is undefined outside the loop; see ARM 5.5 (9, 10). > > > > You seem to imply that Fortran has a similar rule, but that compilers > > do not enforce that rule, and therefore have to perform range checking > > to enforce a non-existent language rule about array access. I am > > confused. Could you clarify? > > A loop index cannot be changed within the loop. It's easy enough to do. Put the index in COMMON or EQUIVALENCE it. Or call a procedure and pass the loop variable. What you mean is that it's illegal to change the loop variable.