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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8d472879e3f609e0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-04 10:45:29 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!nntp.cs.ubc.ca!freenix!usenet-fr.net!mephistopheles.news.clara.net!news.clara.net!skynet.be!skynet.be!213.51.129.3.MISMATCH!newshub1.home.nl!home.nl!news2.euro.net!ash.uu.net!spool0902.news.uu.net!not-for-mail Date: Wed, 04 Jun 2003 13:45:10 -0400 From: Hyman Rosen User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.5a) Gecko/20030529 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Case sensitivity (was Re: no title) References: <20619edc.0306021018.6ee4dd09@posting.google.com> <1054649187.11497@master.nyc.kbcfp.com> <20619edc.0306031034.6a2f5f25@posting.google.com> <1054666439.685312@master.nyc.kbcfp.com> <1054735867.264510@master.nyc.kbcfp.com> Organization: LJK Software In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Organization: KBC Financial Products Message-ID: <1054748714.868159@master.nyc.kbcfp.com> Cache-Post-Path: master.nyc.kbcfp.com!unknown@nightcrawler.nyc.kbcfp.com X-Cache: nntpcache 3.0.1 (see http://www.nntpcache.org/) NNTP-Posting-Host: 204.253.250.10 X-Trace: 1054748716 22686 204.253.250.10 Xref: archiver1.google.com comp.lang.ada:38627 Date: 2003-06-04T13:45:10-04:00 List-Id: Larry Kilgallen wrote: > But if they do _not_ have that difference, the code might compile. > > declare > Index : integer := 27; > begin > for index in my_array'range loop > if my_array ( Index ) > current_maximum > then > current_maximum := my_array ( index ); > Index := index; > end if; > end loop; > end; If I'm not mistaken, the following code *does* compile. for index in my_array'range loop declare Index : integer := 27; begin if my_array ( Index ) > current_maximum then current_maximum := my_array ( index ); Index := index; end if; end; end loop;