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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?B?QmrDtnJuIEx1bmRpbg==?= Newsgroups: comp.lang.ada Subject: Re: Problem implementing Iterators Date: Tue, 27 Jan 2015 19:43:07 +0100 Organization: A noiseless patient Spider Message-ID: References: <9ceb847e-d064-47e7-aa11-7707b63d4308@googlegroups.com> <21e0e529-a516-4e22-a6a5-68b212f22577@googlegroups.com> <6d947a7f-7494-4dd7-96d9-0dad83589413@googlegroups.com> <016b982c-d376-4db4-bb7c-37561e7903d2@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 27 Jan 2015 18:42:35 +0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="0b8346c1317a91a2aaf1c5c741607d9c"; logging-data="14363"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18mnHyj8DuHs9vsUZNzm9r9" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.2.0 In-Reply-To: <016b982c-d376-4db4-bb7c-37561e7903d2@googlegroups.com> Cancel-Lock: sha1:1v0h07L7jHCac+Hp9VgLOlRpscE= Xref: news.eternal-september.org comp.lang.ada:24764 Date: 2015-01-27T19:43:07+01:00 List-Id: On 2015-01-27 19:06, Laurent wrote: > >> change >> L1 : GL_String.List ; >> to >> L1 : aliased GL_String.List ; > > Ok thanks works now. An easier solution than what I tried. Was writing the message while you posted yours :) ... > Would that actually have worked? Perhaps the additional Element_Ptr was't needed at all? > I do not know, but I do not think so. You need to declare a variable as aliased if you want to use/take its 'access. As I understand it, its only purpose is to tell the programmer that this variable may be changed via pointers - beware ... -- Björn