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.0 required=5.0 tests=BAYES_00,FORGED_HOTMAIL_RCVD2, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,b9a378a9a09dab87 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.205.126.4 with SMTP id gu4mr1774362bkc.8.1346149219644; Tue, 28 Aug 2012 03:20:19 -0700 (PDT) Received: by 10.224.223.77 with SMTP id ij13mr8591920qab.1.1346149219430; Tue, 28 Aug 2012 03:20:19 -0700 (PDT) Received: by 10.236.152.5 with SMTP id c5mr1078258yhk.10.1346149219357; Tue, 28 Aug 2012 03:20:19 -0700 (PDT) Path: m12ni144065bkm.0!nntp.google.com!news2.google.com!r1no24949846qas.0!news-out.google.com!da15ni36163658qab.0!nntp.google.com!r1no2242519qas.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 28 Aug 2012 03:20:19 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=193.71.180.107; posting-account=P68zsgoAAABKpXKMUuwuUZ_RfBk1kZfB NNTP-Posting-Host: 193.71.180.107 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <453242bc-2893-4390-9152-b8eef75b1149@googlegroups.com> Subject: Re: Access to procedure and generics From: =?ISO-8859-1?Q?Egil_H=F8vik?= Injection-Date: Tue, 28 Aug 2012 10:20:19 +0000 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-08-28T03:20:19-07:00 List-Id: How about this: with Callback; generic package USE_CALLBACK is procedure HANDLER; private The_Handler : constant Callback.Callback_t := Handler'Access; end USE_CALLBACK; -- with CALLBACK; package body USE_CALLBACK is procedure HANDLER is begin null; end; begin CALLBACK.REGISTER_CALLBACK(The_Handler'Access); end USE_CALLBACK; -- -- ~egilhh