comp.lang.ada
 help / color / mirror / Atom feed
From: Samuel Tardieu <sam@rfc1149.net>
Subject: Re: Desperatly trying to implement an mergesort algorithm
Date: 04 Nov 2005 17:22:31 +0100
Date: 2005-11-04T17:22:39+01:00	[thread overview]
Message-ID: <873bmcv0vs.fsf@willow.rfc1149.net> (raw)
In-Reply-To: 1131120135.758294.294990@o13g2000cwo.googlegroups.com

>>>>> "ejijott" == ejijott  <ejijott@gmail.com> 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



  reply	other threads:[~2005-11-04 16:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-04 16:02 Desperatly trying to implement an mergesort algorithm ejijott
2005-11-04 16:22 ` Samuel Tardieu [this message]
2005-11-04 16:30   ` ejijott
2005-11-05  3:33     ` Steve
2005-11-04 18:48 ` Georg Bauhaus
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox