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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,8c4274b8fd2e1f83 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!b28g2000cwb.googlegroups.com!not-for-mail From: nblanpain@hotmail.com Newsgroups: comp.lang.ada Subject: Re: generic child package Date: 23 Jul 2006 10:57:06 -0700 Organization: http://groups.google.com Message-ID: <1153677426.833491.45220@b28g2000cwb.googlegroups.com> References: <1153637097.986754.139160@75g2000cwc.googlegroups.com> <18vshm271kljo$.14dm2c0ayqmwz$.dlg@40tude.net> NNTP-Posting-Host: 86.211.142.32 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1153677430 28827 127.0.0.1 (23 Jul 2006 17:57:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 23 Jul 2006 17:57:10 +0000 (UTC) In-Reply-To: <18vshm271kljo$.14dm2c0ayqmwz$.dlg@40tude.net> User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.1.4322; InfoPath.1; HbTools 4.8.0),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: b28g2000cwb.googlegroups.com; posting-host=86.211.142.32; posting-account=_RMqsA0AAAC-PdbSlgs9JBFgDjKtbmJX Xref: g2news2.google.com comp.lang.ada:5889 Date: 2006-07-23T10:57:06-07:00 List-Id: yes excuse me : generic type T_Toto is private; but are you sur it is : with P_Child1 is new Parent.Child1; and not with P_Child1 is new Parent.Child1 (<>); thanks, Dmitry A. Kazakov a =E9crit : > 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; >=20 > --=20 > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de