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-Thread: 103376,b88383a5d9c51aa0 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!news3.google.com!news.germany.com!news.ecp.fr!oleane.net!oleane!hunter.axlog.fr!nobody From: Jean-Pierre Rosen Newsgroups: comp.lang.ada Subject: Re: Ada-Singleton-Why does it work like this? Date: Wed, 25 Mar 2009 11:29:14 +0100 Organization: Adalog Message-ID: References: <5a7a870c-40e2-4803-8753-0f9cfd2b800f@k2g2000yql.googlegroups.com> <9a5fb100-c38d-45f6-a482-1c67b26c5866@z15g2000yqm.googlegroups.com> <19a1c6cf-4e4d-402c-902d-3ea2055b4779@c11g2000yqj.googlegroups.com> NNTP-Posting-Host: mailhost.axlog.fr Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: s1.news.oleane.net 1237970430 27511 195.25.228.57 (25 Mar 2009 08:40:30 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 25 Mar 2009 08:40:30 +0000 (UTC) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <19a1c6cf-4e4d-402c-902d-3ea2055b4779@c11g2000yqj.googlegroups.com> Xref: g2news2.google.com comp.lang.ada:5258 Date: 2009-03-25T11:29:14+01:00 List-Id: patrick.gunia@googlemail.com a �crit : > [..] Which mechanism is responsible for > prohibiting this to my singleton class? Very simple: variables of this type have to be initialized. However, the type is private (you cannot provide a value in the form of an aggregate f.e.), and there is no function that returns a value of the type. => There is no way to have a value of the type => There is no possible initialization value => You cannot declare a variable of the type QED Of course, in the package /body/ you see the full declaration, that's why you are allowed to declare a variable there. -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr