comp.lang.ada
 help / color / mirror / Atom feed
From: bobduff@world.std.com (Robert A Duff)
Subject: Re: Q. about generic child unit instantiation
Date: 1996/06/27
Date: 1996-06-27T00:00:00+00:00	[thread overview]
Message-ID: <DtnqxD.1DL@world.std.com> (raw)
In-Reply-To: 4qsdjvINNsv0@bahama.cis.ohio-state.edu

In article <4qsdjvINNsv0@bahama.cis.ohio-state.edu>,
david scott gibson <dgibson@bahama.cis.ohio-state.edu> wrote:
>...  For example, inside
>P.C2 I might want an instance of P.C1 with P_Item instantiated with a
>different actual than the P_Item parameter of P.C2's parent unit.  Is
>this is impossible in Ada due to the recursive instantiation rules?

Yes.  You cannot have an instance of P inside P (which includes inside
P's children).

You could have an instance (call it I) of P outside P, and have an
instance of I.C1 inside P.C2.  Sounds kind of weird to me, but I don't
really know what you're trying to do.

- Bob




      parent reply	other threads:[~1996-06-27  0:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-25  0:00 Q. about generic child unit instantiation david scott gibson
     [not found] ` <DtM900.1D0@world.std.com>
     [not found]   ` <4qsdjvINNsv0@bahama.cis.ohio-state.edu>
1996-06-27  0:00     ` Robert A Duff [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox