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-07 11:38:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: List container strawman 1.1 Date: 07 Nov 2001 14:31:59 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <9s941i$11mrei$3@ID-25716.news.dfncis.de> <9s9nkr$11se3h$1@ID-25716.news.dfncis.de> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1005161554 10558 128.183.220.71 (7 Nov 2001 19:32:34 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 7 Nov 2001 19:32:34 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:16010 Date: 2001-11-07T19:32:34+00:00 List-Id: "Nick Roberts" writes: > "Stephen Leake" wrote in message > news:u1yjbers0.fsf@gsfc.nasa.gov... > > ... > > > I intended the word ('singleton') in the mathematical sense of a set > > > with only one element. Okay so we're not talking about a set, but a > > > list, but I think the meaning is fairly obvious. > > > > Nope. Not to some of us. > > Hmm, well, okay. But is it a meaning you and the Ada community could add (to > that of the singleton instance), or do we seek another word? Part of the problem with this whole notion is that we are only _initializing_ the list to contain one element. Nothing prevents us from adding other elements. So it is _not_ a singleton list, even using your definition! > I quite like 'Create', but doesn't it clash with the rather > different meaning in Ada.*_IO? 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. I really wish that last function call was List.Create (List : in out List_Type). But that's another issue :) -- -- Stephe