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,842accb6a7d76669 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-11-09 19:17:09 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.denver1.co.home.com.POSTED!not-for-mail Message-ID: <3BEC9BB8.6010708@telepath.com> From: Ted Dennison User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5) Gecko/20011011 X-Accept-Language: en-us MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: List container strawman 1.1 References: <9s941i$11mrei$3@ID-25716.news.dfncis.de> <9s9nkr$11se3h$1@ID-25716.news.dfncis.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Sat, 10 Nov 2001 03:17:08 GMT NNTP-Posting-Host: 24.10.28.160 X-Complaints-To: abuse@home.net X-Trace: news1.denver1.co.home.com 1005362228 24.10.28.160 (Fri, 09 Nov 2001 19:17:08 PST) NNTP-Posting-Date: Fri, 09 Nov 2001 19:17:08 PST Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:16189 Date: 2001-11-10T03:17:08+00:00 List-Id: Stephen Leake wrote: > Hmm. Ada.Text_IO.Create (file: file_Type) _does_ initialize an > object of type File_Type, and List.Create (the_list : list) > initializes an object of type List, so they are similar in meaning. ..except that Ada.Text_IO.Create creates an *empty* file, while this routine creates a non-empty list. It also works on a limited-private object which is invalid for any use until Create (or Open) is called. List objects would be valid (if empty) from inception. I'm still leaning toward "Construct" or "Singleton". The hits against "Construct" were that it is a bit long, and that it has other meanings in CS outside of its older list-processing meaning. But it seems to be that "Singleton" has these exact problems as well. However, singleton does have the advantage that it is a better name for a function since it describes what you are getting. "Construct" would be a better name for a procedure, since it describes what is being done.