From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-2.9 required=3.0 tests=BAYES_00,NICE_REPLY_A autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R.Carter" Newsgroups: comp.lang.ada Subject: Re: Odd Behaviour Date: Tue, 18 Jan 2022 12:48:21 +0100 Organization: A noiseless patient Spider Message-ID: References: <09dcb07d-f7b8-432b-8338-840ff90faef1n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 18 Jan 2022 11:48:21 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="4de166002d9673ed6313a248996ba33e"; logging-data="25639"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18iE5VuHNGvAQ+xzkrnfa+XO9cqTigjsMk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Cancel-Lock: sha1:NB4L7iW5ijZUYhQhwHFi9lT6rhk= In-Reply-To: <09dcb07d-f7b8-432b-8338-840ff90faef1n@googlegroups.com> Content-Language: en-US Xref: reader02.eternal-september.org comp.lang.ada:63387 List-Id: On 2022-01-18 12:05, Mark Wilson wrote: > > then an error is raised: 'warning: Valued_Procedure has no effect for convention Ada [enabled by default]' The GNAT RM says of pragma Import_Valued_Procedure "Note that it is important to use this pragma in conjunction with a separate pragma Import that specifies the desired convention, since otherwise the default convention is Ada, which is almost certainly not what is required." What happens if you replace the import aspects with pragma Import? -- Jeff Carter "Monsieur Arthur King, who has the brain of a duck, you know." Monty Python & the Holy Grail 09