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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,ab46f8fd8bc30c31 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!37g2000yqp.googlegroups.com!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Problems with Scope of aliased Objects Date: Thu, 16 Apr 2009 08:50:31 -0700 (PDT) Organization: http://groups.google.com Message-ID: <605b4fb5-2be1-42c7-b8d6-11d0b6098a82@37g2000yqp.googlegroups.com> References: NNTP-Posting-Host: 153.98.68.197 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: posting.google.com 1239897031 16590 127.0.0.1 (16 Apr 2009 15:50:31 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 16 Apr 2009 15:50:31 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 37g2000yqp.googlegroups.com; posting-host=153.98.68.197; posting-account=pcLQNgkAAAD9TrXkhkIgiY6-MDtJjIlC User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:4497 Date: 2009-04-16T08:50:31-07:00 List-Id: Hi Patrick, Why don't you pass the outer array as an "in out" parameter to your subprogram and let the subprogram write directly into the array? Or, alternatively, pass a single component of the array as an "in out" parameter and let the subprogram change it in place? i.e. declare Outer_Array : array (1 .. 10) of Integer; procedure P (Component : in out Integer); begin for K in Outer_Array'Range loop P (Component => Outer_Array (K)); end loop; end; -- Ludovic Brenta.