comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: List Strawman JC01
Date: Fri, 07 Dec 2001 17:30:50 GMT
Date: 2001-12-07T17:30:50+00:00	[thread overview]
Message-ID: <e17Q7.53008$xS6.87427@www.newsranger.com> (raw)
In-Reply-To: un10ww4g1.fsf@gsfc.nasa.gov

In article <un10ww4g1.fsf@gsfc.nasa.gov>, Stephen Leake says...
>
>But this actually points to an inconsistency in Ted's current
>strawman. It says:
>   with function Reverse_Order (Left, Right : in Element) return Boolean;
>So it is currently using "Left" and "Right", rather than "Front" and
>"Back".
>
>Well, actually the Sort procedure doesn't say anything about
>direction. It needs to say "Direction is implicitly Front to Back", or
>it needs to take a Direction parameter.

Right on both counts. I noticed the second issue a couple of days ago, but
missed the first.

For the Sort procedure, I was thinking along the lines of actually providing a
direction as a generic parameter. My initial thought was to make it a parameter
to the procedure. But then we'd probably have to make it a parameter to the
other two routines too. If we did that, there's always the possiblity someone
will muck themselves up by sorting in one order and inserting or merging in
another.

There is the stance that this is unneeded, since picking a direction and making
the user reverse the logic on their predicate is all that is required to allow
for sorting in either direction. But this does make things more explicit, and I
think I've already gone over why I don't think there's a Right direction to
pick. :-)

---
T.E.D.    homepage   - http://www.telepath.com/dennison/Ted/TED.html

No trees were killed in the sending of this message. 
However a large number of electrons were terribly inconvenienced.



  parent reply	other threads:[~2001-12-07 17:30 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-05  6:08 List Strawman JC01 Jeffrey Carter
2001-12-05 19:14 ` Ted Dennison
2001-12-06  0:14   ` Jeffrey Carter
2001-12-06  3:15     ` Jeffrey Carter
2001-12-06 16:11     ` Ted Dennison
2001-12-06 17:48       ` Jeffrey Carter
2001-12-07 15:06         ` Ted Dennison
2001-12-07 17:43           ` Stephen Leake
2001-12-07 18:59             ` Ted Dennison
2001-12-09 14:04               ` Mark Lundquist
2001-12-10 15:25                 ` Ted Dennison
2001-12-10 15:46               ` Marin David Condic
2001-12-10 17:12                 ` Ted Dennison
2001-12-07 18:10           ` Jeffrey Carter
2001-12-07 19:45             ` Ted Dennison
2001-12-07 22:47               ` Basic Properties of Lists Jeffrey Carter
2001-12-09 14:04                 ` Mark Lundquist
2001-12-09 18:16                   ` Chad R. Meiners
2001-12-09 21:21                   ` Jeffrey Carter
2001-12-10 15:37                   ` Ted Dennison
2001-12-10 22:13                     ` Jeffrey Carter
2001-12-11 14:33                       ` Ted Dennison
2001-12-09 14:04           ` List Strawman JC01 Mark Lundquist
2001-12-10 17:02             ` Ted Dennison
2001-12-10 17:13               ` Ted Dennison
2001-12-10 15:37           ` Marin David Condic
2001-12-10 16:10             ` Larry Hazel
2001-12-06 19:09       ` Stephen Leake
2001-12-06 22:45         ` Jeffrey Carter
2001-12-07 16:54           ` Ted Dennison
2001-12-07 17:18             ` Darren New
2001-12-07 17:44               ` Doubly-linked list ordering(s) (was: List Strawman JC01) Ted Dennison
2001-12-07 17:30         ` Ted Dennison [this message]
2001-12-06 19:34     ` List Strawman JC01 Mark Lundquist
2001-12-07 17:04       ` Ted Dennison
2001-12-07 22:27         ` Jeffrey Carter
2001-12-09 14:04         ` Mark Lundquist
2001-12-06 19:34   ` Mark Lundquist
2001-12-06 23:09 ` Nick Roberts
replies disabled

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