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.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,18684ed750c9b60f X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.66.87.161 with SMTP id az1mr2774439pab.38.1349480302526; Fri, 05 Oct 2012 16:38:22 -0700 (PDT) Path: t10ni23617137pbh.0!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!goblin1!goblin2!goblin.stu.neva.ru!news.teledata-fn.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 06 Oct 2012 01:38:15 +0200 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How to get generic formal parameter type into base class References: <51f8461d-d362-4e5f-a188-ac96a699a211@googlegroups.com> In-Reply-To: <51f8461d-d362-4e5f-a188-ac96a699a211@googlegroups.com> Message-ID: <506f6f67$0$6547$9b4e6d93@newsspool4.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 06 Oct 2012 01:38:15 CEST NNTP-Posting-Host: 7b428f9d.newsspool4.arcor-online.net X-Trace: DXC=gnVEVR^ihJR;B_c4IUKejVhM^2XHRO`c`gno]IT_KM^Tg X-Complaints-To: usenet-abuse@arcor.de Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-10-06T01:38:15+02:00 List-Id: On 06.10.12 00:23, kevin.miscellaneous@gmail.com wrote: > This : Classes.Xlate_Base_Type'class := Factory_Get(type1); Xlate_Base_Type is defined inside generic package Classes.Translate_Base. Only instances Xyz of this template allow referring to Xyz.Xlate_Base_Type['Class] elsewhere. Like in base.Xlate_Base_Type. Classes.Xlate_Base_Type does not exist at all, and in Classes.Translate_Base.* "Classes.Translate_Base" is not a valid prefix for that reason. Just guessing, it might be helpful to _not_ associate generic Ada packages with C++ class templates; generic packages are as if C++ had generic _namespaces_.