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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8b8f4ad9d302b143 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-30 09:52:27 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!proxad.net!proxad.net!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-binary.blueyonder.co.uk.POSTED!53ab2750!not-for-mail User-Agent: Microsoft-Entourage/10.1.1.2418 Subject: Re: ada loops From: Bill Findlay Newsgroups: comp.lang.ada Message-ID: References: Mime-version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Date: Fri, 30 May 2003 17:51:26 +0100 NNTP-Posting-Host: 80.195.75.181 X-Complaints-To: abuse@blueyonder.co.uk X-Trace: news-binary.blueyonder.co.uk 1054313546 80.195.75.181 (Fri, 30 May 2003 16:52:26 GMT) NNTP-Posting-Date: Fri, 30 May 2003 16:52:26 GMT Organization: blueyonder (post doesn't reflect views of blueyonder) Xref: archiver1.google.com comp.lang.ada:38119 Date: 2003-05-30T17:51:26+01:00 List-Id: On 30/5/03 17:17, in article wcc1xyg9zoa.fsf@shell01.TheWorld.com, "Robert A Duff" wrote: >> ... I >> replaced Ijk with temp variable and put Ijk := temp before goto and >> it solved the problem, but why we can't have final value when we break >> out of the loop? What's the logic behind this language behaviour? > > So I can be constant inside the loop. The way to think of it is that a > new constant called I is created and destroyed *each* time through the > loop. > > But as you can see, it backfires if you're used to the way Pascal works. In BSI/ANSI/ISO Standard Pascal it is illegal to assign to the controlled variable inside the body of a for loop. -- Bill-Findlay chez blue-yonder.co.uk ("-" => "")