comp.lang.ada
 help / color / mirror / Atom feed
* A good way to name instantiated children?
@ 2003-06-20 15:51 Dmitry A. Kazakov
  2003-06-20 21:06 ` Stephen Leake
  0 siblings, 1 reply; 6+ messages in thread
From: Dmitry A. Kazakov @ 2003-06-20 15:51 UTC (permalink / 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



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2003-06-23 13:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-20 15:51 A good way to name instantiated children? Dmitry A. Kazakov
2003-06-20 21:06 ` 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

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