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,b9a378a9a09dab87 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.180.24.135 with SMTP id u7mr3008204wif.3.1346239560025; Wed, 29 Aug 2012 04:26:00 -0700 (PDT) Path: q11ni374005022wiw.1!nntp.google.com!feeder2.cambriumusenet.nl!feed.tweaknews.nl!138.195.8.3.MISMATCH!news.ecp.fr!aioe.org!.POSTED!not-for-mail From: =?ISO-8859-1?Q?Markus_Sch=F6pflin?= Newsgroups: comp.lang.ada Subject: Re: Access to procedure and generics Date: Wed, 29 Aug 2012 13:25:58 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <647e1a9e-e8be-4ad2-a9d4-21c8ae6f52f2@googlegroups.com> NNTP-Posting-Host: MdpKeRr+sx3LK7JQiK5aNw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-08-29T13:25:58+02:00 List-Id: Am 28.08.2012 17:57, schrieb Adam Beneschan: [snip excellent explanation] Adam, thank you very much for your detailed explanation of the problem and the pointers to possible solutions. Unfortunately, the generic interface is basically cast in stone, but after realizing that I can move the *instantiation* of the generic to its own package, I'm perfectly OK with the following solution ---%<--- with CALLBACK; generic package USE_CALLBACK is procedure HANDLER; private CALLBACK_ACCESS : constant CALLBACK.CALLBACK_T := HANDLER'Access; end USE_CALLBACK; --->%--- suggested by Georg. Regards, Markus