comp.lang.ada
 help / color / mirror / Atom feed
From: dennison@telepath.com (Ted Dennison)
Subject: Re: list strawman
Date: 9 Jan 2002 07:20:36 -0800
Date: 2002-01-09T15:20:37+00:00	[thread overview]
Message-ID: <4519e058.0201090720.722afa78@posting.google.com> (raw)
In-Reply-To: MPG.16a629ebab6a7b63989682@news.ip-plus.net

Thomas Wolf <t_wolf@angelfire.com> wrote in message news:<MPG.16a629ebab6a7b63989682@news.ip-plus.net>...
> Some comments on that Strawman 1.4 interface:
> 2. Element Arrays
> -----------------
> 
>       type Element_Array is array (Natural range <>) of Element;
>       
> Why "Natural range <>"? I'd prefer "Positive range <>" similar to the

This has already been discussed, and it has in fact been changed to
positive. That's one of a couple of changes made since the last
strawman rev.

> 4. Removing from a list end
> ---------------------------
> You don't always want to get the old element when you remove an item
> from the list. Hence I'd add the following:
> 
>       procedure Remove
>         (Target   : in out List;
>          List_End : in     Direction);

We are past the point where we can add routines on a whim. People are
actually implementing it and writing code to work with it now. If a
routine is going to be added or changed at this point, it will be only
be for a very good reason (eg: A bug, or a very serious implementation
or usability problem).

> Two things: first, 'Quit' must be an "in out"-parameter, and second,

That's another thing that has already been discussed and changed.

> 7. Modifying an element at a given location
> -------------------------------------------
> 
>       procedure Modify (Subject   : in out List; 
>                         Location  : in     Iterator;
>                         New_Value : in     Element);
> 
> Why is the subject list passed along? To be consistent with the
> other operations on locations, it should be omitted.

Good catch there. I think I may have actually implemented this and not
noticed. Consider "Subject" removed.

> 9. Equality
> -----------
> Is there any harm done by putting them explicitly in the public part?

One does not put things in the public part of a package that do not
need to go there. So the proper question for putting things in the
public part of a package is not "Does it do any harm there?", but
rather, "Does it absolutely have to go there?" Again, I think the
proper model here is package Standard, which put a commented-out
version in the public part.

> 10. Stream Attributes
> ---------------------
> There's no need at all to make 'Stream_Read' and 'Stream_Write' public.
> I'd put them into the private part.

Again, this has already been discussed and done.

For the rest of your points, I have not addressed them because they
have already been debated and a decision has already been reached over
the last 3 months or so. Rather than have us rehash everything that
has been said before just for your benifit, I suggest you go review
the discussions and the rationale for the decisions at Google groups.



  reply	other threads:[~2002-01-09 15:20 UTC|newest]

Thread overview: 63+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-06 20:55 list strawman Stephen Leake
2002-01-07 15:56 ` Ted Dennison
2002-01-07 15:57   ` Ted Dennison
2002-01-07 16:33   ` Stephen Leake
2002-01-07 16:37     ` Stephen Leake
2002-01-07 19:31       ` Ted Dennison
2002-01-07 19:26     ` Ted Dennison
2002-01-07 22:05       ` Stephen Leake
2002-01-07 22:51         ` Ted Dennison
2002-01-08  0:48           ` Steven Deller
2002-01-08 15:32             ` Ted Dennison
2002-01-08 15:43               ` Jean-Marc Bourguet
2002-01-08 17:07                 ` Ted Dennison
2002-01-08 17:21                   ` Jean-Marc Bourguet
2002-01-08 19:12                     ` Ted Dennison
2002-01-09  8:09                       ` Jean-Marc Bourguet
2002-01-09 18:37                         ` Ted Dennison
2002-01-11  9:37                           ` Jean-Marc Bourguet
2002-01-11 17:03                             ` Ted Dennison
2002-01-11 17:47                               ` Jeffrey Carter
2002-01-12 15:10                               ` Jean-Marc Bourguet
2002-01-13 10:18                                 ` Jean-Marc Bourguet
2002-01-14 16:02                                 ` Ted Dennison
2002-01-14 16:22                                   ` Jean-Marc Bourguet
2002-01-08 19:57                     ` Steven Deller
2002-01-08 19:54                 ` Steven Deller
2002-01-08 19:54               ` Steven Deller
2002-01-08 20:46                 ` Ted Dennison
2002-01-08 21:21                   ` Stephen Leake
2002-01-08 21:49                     ` Ted Dennison
2002-01-09  9:21                       ` Thomas Wolf
2002-01-09 15:20                         ` Ted Dennison [this message]
2002-01-09 15:53                           ` Stephen Leake
2002-01-09 21:21                             ` Ted Dennison
2002-01-09 17:42                         ` Mark Lundquist
2002-01-09 21:02                           ` Jeffrey Carter
2002-01-10  8:47                             ` Thomas Wolf
2002-01-11 17:38                               ` Jeffrey Carter
2002-01-11 21:52                                 ` Chad Robert Meiners
2002-01-12  5:45                                   ` Jeffrey Carter
2002-01-12 22:20                                     ` Chad R. Meiners
2002-01-13 17:03                                       ` Jeffrey Carter
2002-01-13 23:47                                         ` Chad R. Meiners
2002-01-14  1:32                                           ` Ted Dennison
2002-01-14  5:12                                           ` Jeffrey Carter
2002-01-14  5:12                                           ` Jeffrey Carter
2002-01-10 14:39                           ` Ted Dennison
2002-01-11  5:34                             ` Mark Biggar
2002-01-12 12:20                               ` Simon Wright
2002-01-14 14:53                                 ` Matthew Heaney
2002-01-16  5:56                                   ` Simon Wright
2002-01-18  9:15                           ` Overridability of _private_ predefined "=" [was Re: list strawman] Vincent Marciante
2002-01-19 16:58                             ` Vincent Marciante
2002-01-19 22:42                               ` Nick Roberts
2002-01-09  3:10                     ` list strawman Ted Dennison
2002-01-09 19:09                       ` Ted Dennison
2002-01-08 21:26               ` Georg Bauhaus
2002-01-08 22:13                 ` Ted Dennison
2002-01-09 20:52               ` Jeffrey Carter
2002-02-17 15:04 ` Florian Weimer
2002-02-17 15:05 ` Florian Weimer
2002-02-18  1:43   ` Stephen Leake
2002-02-18  8:57     ` Florian Weimer
replies disabled

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