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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c39ad3e35a7690a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.241.37 with SMTP id wf5mr12731893pbc.4.1329230405869; Tue, 14 Feb 2012 06:40:05 -0800 (PST) Path: wr5ni24317pbc.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Convention for naming of packages Date: Tue, 14 Feb 2012 15:40:03 +0100 Organization: Ada @ Home Message-ID: References: <4f355230$0$21451$ba4acef3@reader.news.orange.fr> <1sx3fy79wys5s.1723nejowbg76.dlg@40tude.net> <15fgcngmgl41e$.113i7gtuwpwpv$.dlg@40tude.net> <12sbwz7m0r1qx.1pbp0ox3jr36s.dlg@40tude.net> <1nsv5nr9t05qd$.4u7741n9thcp.dlg@40tude.net> NNTP-Posting-Host: XZfFzKekCOFJcoZatuLArw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.61 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-02-14T15:40:03+01:00 List-Id: Le Tue, 14 Feb 2012 14:33:43 +0100, Dmitry A. Kazakov = a =C3=A9crit: > You shall never provide a constructing function (=3Dfactory) for singl= eton > types. It's initialized at package elaboration. A function can still be used to= = return the kind of reference to the singleton. Lazy initialization may = also be used, while always under controle of package elaboration, which = = will be the only one to set the initial value of the Inialized flag to = False. That said, I have a strange feeling I missed what you wanted to point. D= id = I? > A factory can be used several times, which you, as a package > provider, cannot control. For a singleton? (yes, I finally must have missed something) -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity