comp.lang.ada
 help / color / mirror / Atom feed
From: "Egil Høvik" <egilhovik@hotmail.com>
Subject: Re: Access to procedure and generics
Date: Tue, 28 Aug 2012 03:20:19 -0700 (PDT)
Date: 2012-08-28T03:20:19-07:00	[thread overview]
Message-ID: <453242bc-2893-4390-9152-b8eef75b1149@googlegroups.com> (raw)
In-Reply-To: <k1i41v$sfk$1@speranza.aioe.org>

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



  reply	other threads:[~2012-08-28 10:20 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-28  9:46 Access to procedure and generics Markus Schöpflin
2012-08-28 10:20 ` Egil Høvik [this message]
2012-08-28 10:22   ` Egil Høvik
2012-08-28 10:32     ` Markus Schöpflin
2012-08-31 14:14       ` Robert A Duff
2012-08-28 10:41 ` Georg Bauhaus
2012-08-28 10:47   ` Markus Schöpflin
2012-08-28 15:57 ` Adam Beneschan
2012-08-28 16:01   ` Adam Beneschan
2012-08-29  3:52   ` Brad Moore
2012-08-29 11:25   ` Markus Schöpflin
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox