From: "SteveD" <nospam_steved94@attbi.com>
Subject: Re: Giving a package specification access to the private types of another package
Date: Wed, 11 Dec 2002 02:43:17 GMT
Date: 2002-12-11T02:43:17+00:00 [thread overview]
Message-ID: <9DxJ9.15230$hw3.2675@sccrnsc04> (raw)
In-Reply-To: at56fd$3cq$1@pegasus.csx.cam.ac.uk
"Steven Murdoch" <news01+Steven.Murdoch@cl.cam.ac.uk> wrote in message
news:at56fd$3cq$1@pegasus.csx.cam.ac.uk...
> In article <wccsmx5yimi.fsf@shell01.TheWorld.com>,
> Robert A Duff <bobduff@shell01.TheWorld.com> 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.
>
next prev parent reply other threads:[~2002-12-11 2:43 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-12-10 13:51 Giving a package specification access to the private types of another package Steven Murdoch
2002-12-10 13:53 ` Preben Randhol
2002-12-10 14:07 ` Steven Murdoch
2002-12-10 14:37 ` James S. Rogers
2002-12-10 14:54 ` Steven Murdoch
2002-12-10 15:54 ` Robert A Duff
2002-12-10 16:58 ` Steven Murdoch
2002-12-11 2:43 ` SteveD [this message]
2002-12-10 19:42 ` Stephen Leake
2002-12-10 14:36 ` Steven Murdoch
-- strict thread matches above, loose matches on Subject: below --
2002-12-10 14:27 Grein, Christoph
2002-12-10 14:46 ` Steven Murdoch
2002-12-10 15:08 ` John Cupak
2002-12-10 15:31 ` Steven Murdoch
2002-12-11 5:51 Grein, Christoph
2002-12-11 19:22 ` Jeffrey Carter
2002-12-12 7:14 Grein, Christoph
2002-12-12 17:01 ` Jeffrey Carter
2002-12-13 20:25 ` Steven Murdoch
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox