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-Thread: 103376,b150dc5817cc056a X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!proxad.net!infeed-3.proxad.net!nnrp8-1.free.fr!not-for-mail Sender: sam@willow.rfc1149.net From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: Desperatly trying to implement an mergesort algorithm References: <1131120135.758294.294990@o13g2000cwo.googlegroups.com> Date: 04 Nov 2005 17:22:31 +0100 Message-ID: <873bmcv0vs.fsf@willow.rfc1149.net> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Leafnode-NNTP-Posting-Host: 2001:660:330f:f810:211:2fff:fea6:3aa1 Organization: Guest of ProXad - France NNTP-Posting-Date: 04 Nov 2005 17:22:39 MET NNTP-Posting-Host: 81.56.47.149 X-Trace: 1131121359 nnrp8-1.free.fr 19238 81.56.47.149:58111 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:6198 Date: 2005-11-04T17:22:39+01:00 List-Id: >>>>> "ejijott" == ejijott writes: ejijott> I just plain and simply can't grasp what is wrong here! This piece seems dubious to me: while i <= middle and then j <= A'last loop I have only had a quick glance at your code, but "or else" would seem much more logical than "and then" here. You don't want to stop when one of the boundaries gets reached but when both of them are. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/sam