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-05 14:39:20 PST Path: archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!130.133.1.3!fu-berlin.de!uni-berlin.de!ppp-1-168.cvx5.telinco.NET!not-for-mail From: "Nick Roberts" Newsgroups: comp.lang.ada Subject: Re: List container strawman 1.1 Date: Mon, 5 Nov 2001 22:26:55 -0000 Message-ID: <9s74ee$12b2bq$4@ID-25716.news.dfncis.de> References: NNTP-Posting-Host: ppp-1-168.cvx5.telinco.net (212.1.152.168) X-Trace: fu-berlin.de 1004999951 36014458 212.1.152.168 (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:15872 Date: 2001-11-05T22:26:55+00:00 List-Id: "Eric Merritt" wrote in message news:mailman.1004964069.27693.comp.lang.ada@ada.eu.org... > > > > I would suggest: > > > > function Singleton (Item: in Element_Type) return > > List_Type; > > > > since this would then make it clear that we are > > constructing a singleton > > list. > > Not to be too stupid, That's a risk I run all the time ;-) don't worry! > but this would imply that > throughout a running program there may only be one > instance of this list type. I don't quite understand what you're saying here ... > ie A list is instantiated > once and not again, any time the constructor is called > this already instantiated list is returned. Is this > the case? and if so how useful could this be? ... but I think the idea is that an object of type List_Type can be modified after having been instantiated. -- Nick Roberts