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,a85dd10bdbdb69d4 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-12-10 11:48:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Giving a package specification access to the private types of another package Date: 10 Dec 2002 14:42:26 -0500 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1039550080 18469 128.183.235.92 (10 Dec 2002 19:54:40 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 10 Dec 2002 19:54:40 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:31652 Date: 2002-12-10T19:54:40+00:00 List-Id: news01+Steven.Murdoch@cl.cam.ac.uk (Steven Murdoch) writes: > In article , > Preben Randhol writes: > >make A a child package of B > > It already is, but I have the same problem. I think if A is a child of > B then the body of A can see the body of B, but the public specification of > A cannot see the body of B (which is what I need). > > One of the functions in A takes in a parameter of type C, where C > is declared in the private part of B. This function is not used > anywhere other than the body of B. perhaps making A a private child of B will work. Post some code for more help. -- -- Stephe