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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,ce0900b60ca3f616 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-05 09:59:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!hub1.nntpserver.com!newsfeed.direct.ca!look.ca!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: List container strawman; Construct alternatives Date: 05 Nov 2001 12:21:31 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <3BE29AF4.80804@telepath.com> <3BE29BD4.10401@telepath.com> <3BE2DB99.B707D409@boeing.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1004980937 10056 128.183.220.71 (5 Nov 2001 17:22:17 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 5 Nov 2001 17:22:17 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:15828 Date: 2001-11-05T17:22:17+00:00 List-Id: Ted Dennison writes: > In article <3BE2DB99.B707D409@boeing.com>, Jeffrey Carter says... > > >I suggest Make rather than Construct. > > Fair enough. I'm used to seeing "make" in terms of GNU make, but the term > "Construct" has a fair bit of baggage too. Do we have a second on this motion? I like "Create". However, if you do end up with "type List" being derived from Controlled, then you do _not_ want "Create" to be a primitive operation; derived types must have their own "Create". One good solution is to put the "Create" routines (there are usually more than one) in a local nested package: package Containers.Lists is type List_Type is ... package Creators is procedure Create (List : in out List_Type); -- Create an empty list procedure Create (List : in out List_Type; Initial : in Element); end Creators; end Containers.Lists; Also, I prefer "List_Type" and "Element_Type", for all the reasons in the recent thread on that topic! -- -- Stephe