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-06 09:38:37 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: List container strawman 1.1 Date: 06 Nov 2001 12:24:47 -0500 Organization: NASA Goddard Space Flight Center Message-ID: References: <9s941i$11mrei$3@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 1005067528 9616 128.183.220.71 (6 Nov 2001 17:25:28 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 6 Nov 2001 17:25:28 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7 Xref: archiver1.google.com comp.lang.ada:15930 Date: 2001-11-06T17:25:28+00:00 List-Id: "Nick Roberts" writes: > "Eric Merritt" wrote in message > news:mailman.1005002950.9554.comp.lang.ada@ada.eu.org... > > A singleton is a generally an object of which there is > > only one instance throughout the entire application. > > That means that accessed from anywhere in the program > > it will return the same list, in effect it is only > > instantiated once. That instance is then returned any > > time a new list is called for. So any elements added > > to the list are available thought the application. > > Basically a Singleton is a single instance of an > > object, ie there can never be more then one instance > > singleton object in an application. > > That may be the meaning other languages, but not Ada! This may be beating a dead horse, but I think there is an important point here. "Ada", the language, does _not_ define the term "singleton". Neither does any other programming language that I am aware of. So you are talking about a programming paradigm. It is hard not to assume everyone shares your paradigm, but it is a good skill to develop. > 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. Many of us have heard of the Singleton design pattern; that is what I thought of when you used the word. After puzzling about it for a while, I realized you must mean something else. -- -- Stephe