comp.lang.ada
 help / color / mirror / Atom feed
From: mark_lundquist@my-deja.com
Subject: Re: better way?
Date: Wed, 27 Dec 2000 09:00:18 GMT
Date: 2000-12-27T09:00:18+00:00	[thread overview]
Message-ID: <92cb31$tf6$1@nnrp1.deja.com> (raw)
In-Reply-To: 16D06.22140$A06.845242@news1.frmt1.sfba.home.com



Well, it's _almost_ the "withing problem", and if you're using GNAT you
can use the "with type" language extension if you can live with making
the two "inner" packages child packages of the "outer" instead of
nesting them in "outer".

In article <16D06.22140$A06.845242@news1.frmt1.sfba.home.com>,
  tmoran@acm.org wrote:
> I'd like to do something like:
>   package Outer is
>
>     type Inner_A_Thing_Type;
>     type Inner_B_Thing_Type;
>
>     package Inner_A is
>       type Thing_Type is ...
>       procedre P(X : access Inner_B_Thing_Type);
>     end Inner_A;
>     subtype Inner_A_Thing_Type is Inner_A.Thing_Type;
>
>     package Inner_B is
>       type Thing_Type is ...
>       procedre Q(X : access Inner_A_Thing_Type);
>     end Inner_B;
>     subtype Inner_B_Thing_Type is Inner_B.Thing_Type;
>     ...
>   end Outer;
>
> but the "subtype" instead of "type" prevents it.  Suggestions?
>


Sent via Deja.com
http://www.deja.com/



  parent reply	other threads:[~2000-12-27  9:00 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-22  7:08 better way? tmoran
2000-12-23  3:12 ` Robert Dewar
2000-12-27  9:00 ` mark_lundquist [this message]
2001-01-03  5:00 ` Nick Roberts
2001-01-05 18:46   ` 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