From: "Markus Schöpflin" <no.spam@spam.spam>
Subject: Re: Access to procedure and generics
Date: Tue, 28 Aug 2012 12:32:25 +0200
Date: 2012-08-28T12:32:25+02:00 [thread overview]
Message-ID: <k1i6nn$3ib$1@speranza.aioe.org> (raw)
In-Reply-To: c7875243-5f2a-4ac2-8545-9185d1918861@googlegroups.com
Am 28.08.2012 12:22, schrieb Egil H�vik:
>
>> CALLBACK.REGISTER_CALLBACK(The_Handler'Access);
>
> Should of course be:
> CALLBACK.REGISTER_CALLBACK(The_Handler);
>
Nope, doesn't work.
> gnatmake -gnat95 test
gcc-4.4 -c -gnat95 test.adb
test.adb:4:04: instantiation error at use_callback.ads:7
test.adb:4:04: subprogram must not be deeper than access type
where use_callback.ads:7 looks like:
THE_HANDLER : constant CALLBACK.CALLBACK_T := HANDLER'Access;
next prev parent reply other threads:[~2012-08-28 10:32 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
2012-08-28 10:22 ` Egil Høvik
2012-08-28 10:32 ` Markus Schöpflin [this message]
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