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,1c1a139977eee854 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-24 04:41:58 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: Case statement and Integers. Date: 24 Apr 2002 04:41:58 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0204240341.52a04e5c@posting.google.com> References: <3CC44130.6472A3C8@yahoo.com> NNTP-Posting-Host: 205.232.38.244 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1019648518 28552 127.0.0.1 (24 Apr 2002 11:41:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 24 Apr 2002 11:41:58 GMT Xref: archiver1.google.com comp.lang.ada:23044 Date: 2002-04-24T11:41:58+00:00 List-Id: Anatoly Chernyshev wrote in message news:<3CC44130.6472A3C8@yahoo.com>... > Well, he was probably trying to say approximately the following: > -------This is the compilable and working example--------------------- > with text_io; > use text_io; > procedure af is > numbers: array (1..100) of integer; > pivot:constant integer:=30; > begin > for j in 1..100 loop > numbers(j):=j; > case Numbers(J) is > when 1..Pivot - 1 => > put_line (integer'image (j) & " is smaller than " & integer'image(pivot)); > when Pivot + 1 .. 100 => > put_line (integer'image (j) & " is larger than " & integer'image(pivot)); > when others => > put_line (integer'image (j) & " is equal to " & integer'image(pivot)); > end case; > end loop; > end af; Yes, of course this is compilable, but we perfectly well know that it is 100% irrelevant to the original post, where obvviously the pivot was a dynamic value.