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: Ada Alternatives to Unrestricted_Access Date: Fri, 9 Mar 2018 17:46:01 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <4ab69a18-5766-446c-85c2-14e094199c95@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 9 Mar 2018 16:46:02 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="c7edc9f1b19a195799e6677f73435c7f"; logging-data="13987"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX196DsN42wOhIG7Zeu4Is2Zn9//yKsYO3eM=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 In-Reply-To: <4ab69a18-5766-446c-85c2-14e094199c95@googlegroups.com> Content-Language: en-US Cancel-Lock: sha1:XVd63cUUCGQxkdwgBdpvbUG/p6w= Xref: reader02.eternal-september.org comp.lang.ada:50911 Date: 2018-03-09T17:46:01+01:00 List-Id: On 03/09/2018 01:36 AM, Jere wrote: > > It generates the error "access-to-variable designates constant" because > the function takes a parameter of mode "in" while the iterator needs > a non-constant access to the variable. I can't change the mode of the > function for other reasons. OK, that's what I missed. I guess you could unchecked convert from access-constant to access-all. -- Jeff Carter "To Err is human, to really screw up, you need C++!" Stéphane Richard 63