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-Thread: 103376,8c4274b8fd2e1f83 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: generic child package Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1153637097.986754.139160@75g2000cwc.googlegroups.com> Date: Sun, 23 Jul 2006 09:24:28 +0200 Message-ID: <18vshm271kljo$.14dm2c0ayqmwz$.dlg@40tude.net> NNTP-Posting-Date: 23 Jul 2006 09:24:27 MEST NNTP-Posting-Host: 40605fa5.newsread4.arcor-online.net X-Trace: DXC=mkL8F44KIUo_Pi]:Sm<]\d:ejgIfPPlddjW\KbG]kaMhea\9g\;7Nme4TgnR4M[HQe[6LHn;2LCVn[ On 22 Jul 2006 23:44:58 -0700, nblanpain@hotmail.com wrote: > Is my example correct ? : > > ------------------------------ > generic > with type T_Toto is private; type T_Toto is private; > package Parent is > pragma Pure; > end Parent; > ------------------------------ > > ------------------------------ > generic > package Parent.Child1 is > type T_Child1 is tagged private; > .... > end Parent.Child1; > ------------------------------ > > ------------------------------ > generic > with P_Child1 is new Parent.Child1; ----- or with P_Child1 is new > Parent.Child1 (<>); ????? with package P_Child1 is new Parent.Child1; > package Parent.Child2 is > type T_Child2 is new P_Child1.T_Child1 with private; > .... > end Parent.Child2; > ------------------------------ > > Is there or problem or is it correct ? What about: generic package Parent.Child1.Grandchild1 is type T_Grandchild1 is new T_Child1 with private; .... end Parent.Child1.Grandchild1; -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de