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 18:43:18 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc04.POSTED!not-for-mail From: "SteveD" 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.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: <9DxJ9.15230$hw3.2675@sccrnsc04> NNTP-Posting-Host: 12.211.13.75 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc04 1039574597 12.211.13.75 (Wed, 11 Dec 2002 02:43:17 GMT) NNTP-Posting-Date: Wed, 11 Dec 2002 02:43:17 GMT Organization: AT&T Broadband Date: Wed, 11 Dec 2002 02:43:17 GMT Xref: archiver1.google.com comp.lang.ada:31664 Date: 2002-12-11T02:43:17+00:00 List-Id: "Steven Murdoch" wrote in message news:at56fd$3cq$1@pegasus.csx.cam.ac.uk... > In article , > Robert A Duff writes: > >news01+Steven.Murdoch@cl.cam.ac.uk (Steven Murdoch) writes: > > > >>... A is used by B and by no other package, > >> all of the procedures in A are used by B. > > > >Then A is really part of the implementation of B, so it should be > >"private package B.A is...". > > I think this is what I have done - and it works. My code is equivalent > to the example below. This works and seems to be the best way to do it. > The other choice is to make Private_Type visible as a private type. That is: -- b.ads package B is procedure Proc_B; type Private_Type is private; private type Private_Type is new Integer; end B; Then the rest of the code works without modification. Steve (The Duck) > > Thank you, > Steven Murdoch. >