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,FREEMAIL_FROM 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 Path: g2news2.google.com!postnews.google.com!b16g2000yqb.googlegroups.com!not-for-mail From: "patrick.gunia@googlemail.com" Newsgroups: comp.lang.ada Subject: Re: Problems with Scope of aliased Objects Date: Thu, 16 Apr 2009 09:12:01 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <605b4fb5-2be1-42c7-b8d6-11d0b6098a82@37g2000yqp.googlegroups.com> <7e8384b9-f3eb-473e-bf04-1207c6212799@v35g2000pro.googlegroups.com> NNTP-Posting-Host: 78.34.66.221 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1239898321 20730 127.0.0.1 (16 Apr 2009 16:12:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 16 Apr 2009 16:12:01 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b16g2000yqb.googlegroups.com; posting-host=78.34.66.221; posting-account=D7TrwwoAAAAVyN71CASRiSp392RIjlsB User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.64 (Windows NT 6.0; U; de) Presto/2.1.1,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:5471 Date: 2009-04-16T09:12:01-07:00 List-Id: On 16 Apr., 18:01, Adam Beneschan wrote: > On Apr 16, 8:50 am, Ludovic Brenta wrote: > > > 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? > > I get the impression that the OP wanted an array of class-wide types, > so this won't work. > > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 -- Adam Yes, this is exactly what I need. I=B4d like to use the elements of the array for polymorphic methods and the array has to be able to keep members from different classes within my hierarchie. Thus I won=B4t have another option then declaring the array as an array of class-wide access types. So this part is fixed. In Ludovic=B4s approach I would still work with concrete instances of my class, which won=B4t work for my structure.