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 16:42:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-1-106.cvx5.telinco.NET!not-for-mail From: "Nick Roberts" Newsgroups: comp.lang.ada Subject: Re: List container strawman 1.1 Date: Wed, 7 Nov 2001 22:55:59 -0000 Message-ID: <9scke7$12jb14$2@ID-25716.news.dfncis.de> References: <9s941i$11mrei$3@ID-25716.news.dfncis.de> <9s9nkr$11se3h$1@ID-25716.news.dfncis.de> NNTP-Posting-Host: ppp-1-106.cvx5.telinco.net (212.1.152.106) X-Trace: fu-berlin.de 1005180168 36285476 212.1.152.106 (16 [25716]) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MIMEOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Xref: archiver1.google.com comp.lang.ada:16028 Date: 2001-11-07T22:55:59+00:00 List-Id: "Stephen Leake" wrote in message news:u668mcr80.fsf@gsfc.nasa.gov... > ... > 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! Oh yes it is. It's a function that returns a constant singleton (list) object. Whether you then assign it to a list object (which can then be extended) or do anything else to it is immaterial. (We _are_ talking about a function aren't we?) > > 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. True, but it might be confusing that Ada.Text_IO.Create is a procedure, whereas the list constructor we're discussing is a function (isn't it?). -- Best wishes, Nick Roberts