From: Ludovic Brenta <ludovic@ludovic-brenta.org>
Subject: Re: Problems with Scope of aliased Objects
Date: Thu, 16 Apr 2009 08:50:31 -0700 (PDT)
Date: 2009-04-16T08:50:31-07:00 [thread overview]
Message-ID: <605b4fb5-2be1-42c7-b8d6-11d0b6098a82@37g2000yqp.googlegroups.com> (raw)
In-Reply-To: e9b734e0-478a-4849-b821-444cdbdfac2a@r33g2000yqn.googlegroups.com
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.
next prev parent reply other threads:[~2009-04-16 15:50 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-16 13:43 Problems with Scope of aliased Objects patrick.gunia
2009-04-16 15:29 ` Adam Beneschan
2009-04-16 15:59 ` patrick.gunia
2009-04-16 16:26 ` Adam Beneschan
2009-04-16 16:37 ` patrick.gunia
2009-04-16 20:11 ` Adam Beneschan
2009-04-16 15:47 ` Dmitry A. Kazakov
2009-04-16 19:12 ` sjw
2009-04-16 15:50 ` Ludovic Brenta [this message]
2009-04-16 16:01 ` Adam Beneschan
2009-04-16 16:12 ` patrick.gunia
2009-04-17 13:53 ` Alex R. Mosteo
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox