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=0.6 required=5.0 tests=BAYES_00,FROM_WORDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,b50bc6538a649497 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2000-11-08 19:43:15 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!nntp.flash.net!news.flash.net!not-for-mail From: "Ken Garlington" Newsgroups: comp.lang.ada References: <3A02CED4.520C2768@brighton.ac.uk> <3A078B6F.D34B024B@erols.com> <3A083BBF.3E4FED8A@ftw.rsc.raytheon.com> <3A094773.53131433@bton.ac.uk> <3A098A36.BEAB956A@ftw.rsc.raytheon.com> Subject: Re: if statements X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Message-ID: Date: Thu, 09 Nov 2000 03:43:11 GMT NNTP-Posting-Host: 216.215.86.151 X-Complaints-To: abuse@flash.net X-Trace: news.flash.net 973741391 216.215.86.151 (Wed, 08 Nov 2000 21:43:11 CST) NNTP-Posting-Date: Wed, 08 Nov 2000 21:43:11 CST Organization: FlashNet Communications, http://www.flash.net Xref: supernews.google.com comp.lang.ada:1915 Date: 2000-11-09T03:43:11+00:00 List-Id: "Wes Groleau" wrote in message news:3A098A36.BEAB956A@ftw.rsc.raytheon.com... : J : > > Temp := B; : > > B := Integer'Min (A, B) : > > A := Integer'Max (A, Temp); : > > : > > Oops, the "if" he wanted is missing. :-) : > : > Hmm. I'll change the test program to use a hidden record type : > instead of an Integer with smart people like you around... ;-) : : But then you'd also have to change the words that say : "swap A and B if B is _larger_" Not if he defines ">"!