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,e8fd9bf92374a60a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!r66g2000hsg.googlegroups.com!not-for-mail From: alexander.kleppe@web.de Newsgroups: comp.lang.ada Subject: Re: Declaration of private type Containers Date: Fri, 30 May 2008 06:59:22 -0700 (PDT) Organization: http://groups.google.com Message-ID: <8910e931-889f-4617-a249-71b5016a13e2@r66g2000hsg.googlegroups.com> References: <6d6feee1-fe69-4d19-9745-4748d341a56e@r66g2000hsg.googlegroups.com> <9hro1g.ni4.ln@hunter.axlog.fr> NNTP-Posting-Host: 141.54.159.220 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1212155962 21875 127.0.0.1 (30 May 2008 13:59:22 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 30 May 2008 13:59:22 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: r66g2000hsg.googlegroups.com; posting-host=141.54.159.220; posting-account=LGR_CwoAAAA-5VQ2IOOBlJKOPyfqw14F User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:477 Date: 2008-05-30T06:59:22-07:00 List-Id: Thanks so far. So if I understand you right, there is no way to declare the list package within the spec file of My_Type beside declaring My_Type public? I suppose I have to source out the subprograms using the list instances in their parameter list out of package A as well... So my solution now is a new package spec and body called A.Containers, which contains all the container packages and subprograms formerly declared in A (which brought the error with private types). The alternative would be your suggestion to declare the package as A.My_Types_List in package B. Hope that's what you meant, otherwise please correct me.