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.3 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, REPLYTO_WITHOUT_TO_CC autolearn=no 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-22 01:51:07 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!deine.net!freenix!enst!enst.fr!not-for-mail From: "Vadim Godunko" Newsgroups: comp.lang.ada Subject: Re: Case statement and Integers. Date: Mon, 22 Apr 2002 12:41:20 +0400 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: References: <5ee5b646.0204211905.16ee3dcb@posting.google.com> Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1019465466 28187 137.194.161.2 (22 Apr 2002 08:51:06 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Mon, 22 Apr 2002 08:51:06 +0000 (UTC) Return-Path: X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.8 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:22888 Date: 2002-04-22T12:41:20+04:00 Sorry, this is my mistake. The correct expamle: case Numbers (J) is when Numbers_Array_Element_Type'First .. Pivot - 1 => ... when Pivot + 1 .. Numbers_Array_Element_Type'Last => ... when others => null; end case; and, Pivot must be constant. ----- Original Message ----- From: "Robert Dewar" Newsgroups: comp.lang.ada Sent: Monday, April 22, 2002 7:05 AM Subject: Re: Case statement and Integers. > "Vadim Godunko" wrote in message news:... > > > case Numbers(J) is > > when Numbers (J) in Numbers_Array_Element_Type'First .. Pivot - 1 => > > swap ... > > when Numbers (J) in Pivot + 1 .. Numbers_Array_Element_Type'Last => > > swap ... > > when others => > > null; > > end case; > > Please don't post junk code. If you are trying to be deliberately unhelpful, > do it by email. If you really think that the above is correct, you are as > seriously confused as the questioner :-) > > As always, I suggest that people actually compile any sample code they > think of suggesting on CLA.