comp.lang.ada
 help / color / mirror / Atom feed
From: Adam Beneschan <adambeneschan@aol.com>
Subject: Re: Accessibility Levels and Library-Level Units
Date: Tue, 24 Sep 2013 12:59:45 -0700 (PDT)
Date: 2013-09-24T12:59:45-07:00	[thread overview]
Message-ID: <397a7787-da0b-47f0-b3b9-b980e2943652@googlegroups.com> (raw)
In-Reply-To: <9b6abada-1212-424b-a043-83406fe8092d@googlegroups.com>

On Tuesday, September 24, 2013 12:43:37 PM UTC-7, Eryndlia Mavourneen wrote:
> Thank you Riccardo, Jeff, & Adam.
> 
> 
> 
> Jeff, I thought I had tried it with an anonymous type without success; however, the context in which I have to use this disallows doing that in any case.

Note that even if Sub were declared with an anonymous access-to-subprogram type, the code you posted:

   11.    The_Proc : Proc_Type; 
   12. begin 
   13.    The_Proc := Test'Access; 
   14.    Sub (Proc => The_Proc); 

would still be illegal, since the error is on the line that assigns The_Proc := Test'Access.  Getting rid of The_Proc and just calling

   Sub (Proc => Test'Access);

should work in that case.

                                -- Adam

  reply	other threads:[~2013-09-24 19:59 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-24 18:36 Accessibility Levels and Library-Level Units Eryndlia Mavourneen
2013-09-24 18:54 ` Eryndlia Mavourneen
2013-09-24 19:23   ` Adam Beneschan
2013-09-24 19:06 ` mockturtle
2013-09-25  7:46   ` Dmitry A. Kazakov
2013-09-24 19:13 ` mockturtle
2013-09-24 19:23   ` Eryndlia Mavourneen
2013-09-24 19:27   ` Adam Beneschan
2013-09-24 20:02     ` J-P. Rosen
2013-09-24 20:17       ` Eryndlia Mavourneen
2013-09-24 20:32       ` Adam Beneschan
2013-09-24 19:31 ` Jeffrey Carter
2013-09-24 19:43   ` Eryndlia Mavourneen
2013-09-24 19:59     ` Adam Beneschan [this message]
2013-09-24 20:50     ` Robert A Duff
2013-09-25 14:40       ` Eryndlia Mavourneen
2013-09-25 21:34         ` Robert A Duff
2013-09-26 12:46           ` Eryndlia Mavourneen
2013-09-29 21:36             ` Stephen Leake
replies disabled

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