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,INVALID_MSGID 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 From: Wes Groleau Subject: Re: if statements Date: 2000/11/08 Message-ID: <3A098A36.BEAB956A@ftw.rsc.raytheon.com>#1/1 X-Deja-AN: 691275490 Content-Transfer-Encoding: 7bit References: <3A02CED4.520C2768@brighton.ac.uk> <3A078B6F.D34B024B@erols.com> <3A083BBF.3E4FED8A@ftw.rsc.raytheon.com> <3A094773.53131433@bton.ac.uk> X-Accept-Language: en,es,fr,pt Content-Type: text/plain; charset=us-ascii X-Complaints-To: news@ext.ray.com X-Trace: bos-service2.ext.raytheon.com 973703738 151.168.144.162 (Wed, 08 Nov 2000 12:15:38 EST) Organization: Raytheon Company MIME-Version: 1.0 NNTP-Posting-Date: Wed, 08 Nov 2000 12:15:38 EST Newsgroups: comp.lang.ada Date: 2000-11-08T00:00:00+00:00 List-Id: 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_" -- Wes Groleau http://freepages.rootsweb.com/~wgroleau