From: "Steve" <nospam_steved94@attbi.com>
Subject: Re: semi-visibility
Date: Fri, 13 Jun 2003 03:40:57 GMT
Date: 2003-06-13T03:40:57+00:00 [thread overview]
Message-ID: <dJbGa.123221$d51.195610@sccrnsc01> (raw)
In-Reply-To: YR8Ga.121540$d51.192359@sccrnsc01
Is there some reason you don't want to put type Visible_To_Relatives in the
private part of A?
Steve
(The Duck)
<tmoran@acm.org> wrote in message news:YR8Ga.121540$d51.192359@sccrnsc01...
> I want to do the following, but it's illegal. What's a good way to
> accomplish the purpose, preferably without increasing the depth of
> the package heirarchy, or enlarging package A.
>
> private package A.B is
> type Visible_To_Relatives is ...
> end A.B;
>
> with A.B;
> package A.C is
> type T is private;
> procedure P(x : in T);
> private
> type T is record
> v : A.B.Visible_To_Relatives;
> end record;
> end A.C;
>
> with A.B;
> package A.D is ...
> -- private part here similarly needs visibility of A.B
next prev parent reply other threads:[~2003-06-13 3:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-13 0:25 semi-visibility tmoran
2003-06-13 1:37 ` semi-visibility Jeffrey Carter
2003-06-13 23:08 ` semi-visibility Randy Brukardt
2003-06-13 3:40 ` Steve [this message]
2003-06-13 4:11 ` semi-visibility tmoran
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox