From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,59e7405b37921f3e,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-20 08:48:52 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!fu-berlin.de!uni-berlin.de!dialin-145-254-039-237.arcor-ip.NET!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: A good way to name instantiated children? Date: Fri, 20 Jun 2003 17:51:39 +0200 Organization: At home Message-ID: Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: dialin-145-254-039-237.arcor-ip.net (145.254.39.237) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: fu-berlin.de 1056124130 24505828 145.254.39.237 (16 [77047]) User-Agent: KNode/0.7.1 Xref: archiver1.google.com comp.lang.ada:39495 Date: 2003-06-20T17:51:39+02:00 List-Id: 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