comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: A good way to name instantiated children?
Date: Fri, 20 Jun 2003 17:51:39 +0200
Date: 2003-06-20T17:51:39+02:00	[thread overview]
Message-ID: <bcvad2$nbrf4$1@ID-77047.news.dfncis.de> (raw)

Hi!

Let we have a chain of generic packages:

A.B.C.D...

Let the root A have a generic parameter, say,

   type Number is private;

Now, I want to instantiate all packages of the chain with Number => Float. 
The problem i,s how to name the children?

   package Float_A is new A (Float);

is fine, but the children cannot be named Float_A.B.C.D:

   with Float_A;
   with A.B;
   package Float_A.B is new Float_A.B; -- Error

(generic A.B contaminates the name space of Float_A). 

Float_A.Float_B.Float_C.Float_D looks awful.

Any ideas?

-- 
Regards,
Dmitry A. Kazakov
www.dmitry-kazakov.de



             reply	other threads:[~2003-06-20 15:51 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-20 15:51 Dmitry A. Kazakov [this message]
2003-06-20 21:06 ` A good way to name instantiated children? Stephen Leake
2003-06-21  6:48   ` Simon Wright
2003-06-21 19:43     ` Jeffrey Carter
2003-06-23 13:39       ` Stephen Leake
2003-06-21  7:12   ` Dmitry A. Kazakov
replies disabled

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