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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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 06:37:33 PST Path: archiver1.google.com!news2.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Reply-To: "James S. Rogers" From: "James S. Rogers" Newsgroups: comp.lang.ada References: Subject: Re: Giving a package specification access to the private types of another package X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Tue, 10 Dec 2002 14:37:32 GMT NNTP-Posting-Host: 12.86.37.141 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 1039531052 12.86.37.141 (Tue, 10 Dec 2002 14:37:32 GMT) NNTP-Posting-Date: Tue, 10 Dec 2002 14:37:32 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.lang.ada:31635 Date: 2002-12-10T14:37:32+00:00 List-Id: "Steven Murdoch" wrote in message news:at4sfs$m2r$2@pegasus.csx.cam.ac.uk... > 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. You clearly have a poor organization. Try to think a bit more about modularity when designing packages. Either A and B should be merged into a single package, or pieces of A and B should be moved from one package to the other. Jim Rogers