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,9778ad55d3901071,start X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!v46g2000cwv.googlegroups.com!not-for-mail From: nblanpain@hotmail.com Newsgroups: comp.lang.ada Subject: generic child class Date: 7 Mar 2006 02:44:09 -0800 Organization: http://groups.google.com Message-ID: <1141728249.709680.183670@v46g2000cwv.googlegroups.com> NNTP-Posting-Host: 195.101.38.93 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1141728255 28957 127.0.0.1 (7 Mar 2006 10:44:15 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 7 Mar 2006 10:44:15 +0000 (UTC) User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: v46g2000cwv.googlegroups.com; posting-host=195.101.38.93; posting-account=_RMqsA0AAAC-PdbSlgs9JBFgDjKtbmJX Xref: g2news1.google.com comp.lang.ada:3281 Date: 2006-03-07T02:44:09-08:00 List-Id: Hi, I have a compilation error that i not understand. This is my example : ## Vec package ## generic type T_Real is digits <>; package Vec is end Vec; ## Mat package ## with Vec; generic with package Vector is new Vec (<>); package Mat is end Mat; ## Mat.Child package ## generic type T_Tab is array (Integer) of Vector.T_Real; package Mat.Child is end Mat.Child; ## Test package ## with Vec; with Mat; with Mat.Child; package Test is package Vec_Float is new Vec (T_Real => Float); package Mat_Float is new Mat (Vector => Vec_Float); type T_Tableau is array (Integer) of Float; package Mat_Child_Float is new Mat_Float.Child (T_Tab => T_Tableau); ---- error !!!!!!!!!! end Test; The error message is : "component subtype of actual does not match that of formal T_Tab " have you an explaining ? thanks,