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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.224.137.67 with SMTP id v3mr13840741qat.0.1380052785943; Tue, 24 Sep 2013 12:59:45 -0700 (PDT) X-Received: by 10.182.76.4 with SMTP id g4mr188669obw.11.1380052785903; Tue, 24 Sep 2013 12:59:45 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.glorb.com!d5no1783126qap.0!news-out.google.com!9ni111qaf.0!nntp.google.com!d5no1783124qap.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 24 Sep 2013 12:59:45 -0700 (PDT) In-Reply-To: <9b6abada-1212-424b-a043-83406fe8092d@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=66.126.103.122; posting-account=RxNzCgoAAACA5KmgtFQuaU-WaH7rjnAO NNTP-Posting-Host: 66.126.103.122 References: <58149dd9-990d-415c-a121-bc7a1a69473c@googlegroups.com> <9b6abada-1212-424b-a043-83406fe8092d@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <397a7787-da0b-47f0-b3b9-b980e2943652@googlegroups.com> Subject: Re: Accessibility Levels and Library-Level Units From: Adam Beneschan Injection-Date: Tue, 24 Sep 2013 19:59:45 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: news.eternal-september.org comp.lang.ada:17272 Date: 2013-09-24T12:59:45-07:00 List-Id: 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