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,8d472879e3f609e0 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-05 10:51:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!tdsnet-transit!newspeer.tds.net!news.binc.net!kilgallen From: Kilgallen@SpamCop.net (Larry Kilgallen) Newsgroups: comp.lang.ada Subject: Re: Case sensitivity (was Re: no title) Date: 5 Jun 2003 12:51:54 -0500 Organization: Berbee Information Networks Corporation Message-ID: 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 NNTP-Posting-Host: eisner.encompasserve.org X-Trace: grandcanyon.binc.net 1054835444 18095 192.135.80.34 (5 Jun 2003 17:50:44 GMT) X-Complaints-To: abuse@binc.net NNTP-Posting-Date: Thu, 5 Jun 2003 17:50:44 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:38716 Date: 2003-06-05T12:51:54-05:00 List-Id: In article , Stephen Leake writes: > Hyman Rosen writes: > >> 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; > > Yes, it does, and it has a bug. If the language was not > case-sensitive, the bug would be easier to see. But mainly since the language is case-blind, programmers are not tempted to declare multiple objects (explicit or implicit) with such easily confused names.