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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Formal Subprogram Access Date: Sat, 10 Feb 2018 10:57:10 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 10 Feb 2018 09:57:10 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="a4188113d4920b94d27fa65f32d1ad49"; logging-data="18810"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1++iNqzn2zCaAzifaHA1JhMrkmEdabKH/w=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: Content-Language: en-US Cancel-Lock: sha1:LAx7lMs8uNtZJGmNM8W0onZJiQY= Xref: reader02.eternal-september.org comp.lang.ada:50359 Date: 2018-02-10T10:57:10+01:00 List-Id: On 02/10/2018 04:03 AM, Randy Brukardt wrote: > > Why do you think this is correct? I can't read 3.10.2(32/5) in a way which > would prevent using a formal subprogram in this way (assuming that the > profile matches, which is does trivially in this case). Indeed, there is > specifically an exception allowing "an anonymous access type of an access > parameter." IIRC, you can't take 'Access of some attributes that act as subprograms, but you can use them as the actual for a generic formal subprogram. So a generic can't take 'Access of a generic formal subprogram. -- Jeff Carter "What lazy lout left these wires all over the lawn?" Poppy 98