From: Pascal Ledru <Ledru#m#_Pascal@MSMAIL3.HAC.COM>
Subject: Re: Strongly coupled generic children?
Date: 1996/04/24
Date: 1996-04-24T00:00:00+00:00 [thread overview]
Message-ID: <317EB299.3403@MSMAIL3.HAC.COM> (raw)
In-Reply-To: 4lib04$juq@rigel.rz.uni-ulm.de
What about using a formal package as a parameter of X.Z:
generic
type P1_Type is private;
package P1 is
procedure MainProc;
end P1;
generic
package P1.Y is
procedure Somewhat;
end p1.Y;
with P1.Y;
generic
with package P1Y is new P1.Y(<>);
package P1.Z is
procedure DoSomething;
end;
package body P1.Z is
procedure Dosomething is
begin
p1Y.Somewhat;
end;
end;
with P1;
with P1.Y;
with P1.Z;
package test is
package I1 is new P1(P1_Type => Integer);
package I2 is new I1.Y;
package I3 is new I1.Z(P1Y => I2);
end;
prev parent reply other threads:[~1996-04-24 0:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-04-23 0:00 Strongly coupled generic children? Joerg Rodemann
1996-04-23 0:00 ` Michel Gauthier
1996-04-24 0:00 ` Pascal Ledru [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