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,fc684242a03ba7c0 X-Google-Attributes: gid103376,public From: "Shawn M. Root" Subject: Re: Problem with operator "<" Date: 2000/09/17 Message-ID: <8q41tt$sk9@niven.ksc.nasa.gov>#1/1 X-Deja-AN: 671055004 References: <39C12B38.47273C93@netcourrier.com> <8prggo$q9k$1@nnrp1.deja.com> <39C25377.E038D6C9@netcourrier.com> <39C2ADEC.10E0B022@swbell.net> <39C36424.C88A764@netcourrier.com> <39C3A4A8.9ED2F23F@swbell.net> X-Priority: 3 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600 Organization: NASA, Kennedy Space Center X-MSMail-Priority: Normal Newsgroups: comp.lang.ada Date: 2000-09-17T00:00:00+00:00 List-Id: "John Magness" wrote in message news:39C3A4A8.9ED2F23F@swbell.net... > > > Mathias Dolidon wrote: > > > > My two cents -- the line : if Left(i) < Right(i) then appears to be > > > comparing the same element of the array. > > > This line should never test true. > > > > It isn't the same array. I don't understand what problem you see here... > > Sorry -- my mistake -- it is not the same array. However it is still a > recursive call to the function being declared ("<") is it not? > > If the line is changed to "if not (left(i) > right(i)) then " the recursive > call would > be avoided. > John > There is no recursion here. The line if Left(i) < Right(i) then uses the "<" operator for whatever type comprises the elements of a grand_entier. Also, you might want to think about your solution for solving the problem. not (left>right) is not the same as (left