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,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-20 09:42:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cwix.com!wn2feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail From: Wannabe h4x0r Subject: Case statement and Integers. Newsgroups: comp.lang.ada User-Agent: Pan/0.11.1 (Unix) Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Comment-To: ALL Message-ID: NNTP-Posting-Host: 12.245.48.122 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1019320952 12.245.48.122 (Sat, 20 Apr 2002 16:42:32 GMT) NNTP-Posting-Date: Sat, 20 Apr 2002 16:42:32 GMT Organization: AT&T Broadband Date: Sat, 20 Apr 2002 16:42:32 GMT Xref: archiver1.google.com comp.lang.ada:22820 Date: 2002-04-20T16:42:32+00:00 List-Id: I have a statement like this... case numbers(j) is when numbers(j) < pivot => swap(left_swap, right_swap); -- If the number is less than the pivot, swap it with the number -- to the right of the Pivot; when numbers(j) > pivot => swap(right_swap, left_swap); -- If the number is greater than the pivot, then do the opposite of the -- above. when numbers(j) = pivot => null; when others => null; end case; Now, it's pretty obvious whats wrong here. The swap procedure is expecting an Integer, and instead it's getting a boolean value due to the '>', '<', and '=>' operators. Whats the proper way to indicate to the compiler that I want to send the numbers indexed by "left_swap" and "right_swap" to the swap procedure rather than the results of the boolean test in the case statement? Thanks for your patience. Chris