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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.66.164.225 with SMTP id yt1mr11766952pab.32.1438504599388; Sun, 02 Aug 2015 01:36:39 -0700 (PDT) X-Received: by 10.140.20.147 with SMTP id 19mr95152qgj.20.1438504599341; Sun, 02 Aug 2015 01:36:39 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!f3no6254730igg.0!news-out.google.com!78ni3061qge.1!nntp.google.com!69no3380301qgl.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 2 Aug 2015 01:36:39 -0700 (PDT) In-Reply-To: <87twsijt8k.fsf@jester.gateway.sonic.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=81.203.145.32; posting-account=AFCLjAoAAABJAOf_HjgEEEi3ty-lG5m2 NNTP-Posting-Host: 81.203.145.32 References: <91f88d79-197c-419f-84a8-908e05967a2c@googlegroups.com> <135c2b00-d13c-4f5d-a586-8aca442d363b@googlegroups.com> <87380683vc.fsf@adaheads.sparre-andersen.dk> <347c6be9-c918-4bc0-9494-c93cd6740def@googlegroups.com> <4cb32c40-f659-490d-bbb6-73585fc069e8@googlegroups.com> <7e653a88-e690-431a-9df9-3fc691466e08@googlegroups.com> <25e8deb9-a967-4856-97cb-4257e1ba7fa4@googlegroups.com> <84debe67-b26c-40c6-93ae-a2dec28f081b@googlegroups.com> <87twsijt8k.fsf@jester.gateway.sonic.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Running a preprocessor from GPS? From: EGarrulo Injection-Date: Sun, 02 Aug 2015 08:36:39 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:27320 Date: 2015-08-02T01:36:39-07:00 List-Id: On Sunday, August 2, 2015 at 4:53:49 AM UTC+2, Paul Rubin wrote: > "Jeffrey R. Carter" writes: > > Here you've lost me again. A singleton is some hidden state and some operations > > that use that state. If it can be as simple as calling static operations of a > > class, then why do you and the DP book insist on all the complications? If the > > complications are necessary, how can it be that simple? > > Singleton is sort of a misnomer. It sounds like there is always exactly > one instance, but it really means there is either one instance or zero > instances. There are zero when the program starts, but during the > program's execution it may decide to create one instance. Actually, the Singleton pattern lets you add instances later, without the clients noticing.