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: Thu, 8 Mar 2018 18:51:00 +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: Thu, 8 Mar 2018 17:51:00 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="72f0104fc40eb90b9f0e02ef393e425c"; logging-data="28736"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19sAgYk37+dFs3kzCpc5K+Z7B2luvY+OIM=" 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:Y5sQ8ZeppvAxs6xf1Z6MFxkOvwU= Xref: reader02.eternal-september.org comp.lang.ada:50897 Date: 2018-03-08T18:51:00+01:00 List-Id: On 03/07/2018 09:11 PM, Jere wrote: > > function Iterate > (C : in Container) > return Iterator_Interfaces.Forward_Iterator'Class; > > and the generic formal for Container > > type Container is tagged private; Since Container is tagged, the parameter C should be aliased [ARM 3.10(9)], so you should be able to use 'Unchecked_Access. Or am I missing something? -- Jeff Carter "I've got to stay here, but there's no reason why you folks shouldn't go out into the lobby until this thing blows over." Horse Feathers 50