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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,bbc77d6e9a74feb5 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-08 11:40:12 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!skynet.be!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: please help - access and inheritence Date: Mon, 08 Dec 2003 19:50:58 +0100 Organization: AdaCL Message-ID: <1339724.UG9tll5RLS@linux1.krischik.com> References: <3fd27939$1@news.barak.net.il> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1070912246 03 9724 me8sG2q6bfdDIVR 031208 19:37:26 X-Complaints-To: usenet-abuse@t-online.de X-ID: rGtaS-ZJZeef1qsgH9stNx3Hpd5MM2ALAFsR3oKriIyp4+5QRnfm0i User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:3240 Date: 2003-12-08T19:50:58+01:00 List-Id: Ratson Janiv wrote: > type Vehicleptr is access Jr.Vehicle.Vehicle'Class; An other poster allready pointed out that you need to use access all. > type Vehiclesarr is array (1..Maxvehilces) of Vehicleptr; > > Vp1,Vp2,Vp3,Vp4,Vp5: aliased Jr.Vehicle.Private_Car.Vehicle_Private; > > Arr(1) := Vehicleptr(Vp1'access); -- failed, why? please ... But maybee you would be better off using some container library i.E. the booch components: http://www.pushface.org/components/bc and since you are trying to store Vehicle'Class you might also want to look at the indefinte extension at: http://adacl.sourceforge.net Examples: http://adacl.sourceforge.net/html ______Include__AdaCL-SAR-Filter-Container__ads.htm http://adacl.sourceforge.net/html/sarDo-CommandLine__adb.htm#176_15 The interesting Part: You won't need any access any more. With Regards Martin -- mailto://krischik@users.sourceforge.net http://adacl.sourceforge.net