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-09 09:04:13 PST Path: archiver1.google.com!news2.google.com!newsfeed2.dallas1.level3.net!news.level3.com!news-out.visi.com!petbe.visi.com!easynet-quince!easynet.net!feed1.news.be.easynet.net!easynews.net!newsfeed3.easynews.net!newsfeed01.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: Tue, 09 Dec 2003 17:55:04 +0100 Organization: AdaCL Message-ID: <1420570.hLiUgvdvap@linux1.krischik.com> References: <3fd27939$1@news.barak.net.il> <1339724.UG9tll5RLS@linux1.krischik.com> 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 1070989419 05 23955 DULbGALLJaa5lqA 031209 17:03:39 X-Complaints-To: usenet-abuse@t-online.de X-ID: ZZJ7ZZZaYeo0D4KwtUMRwKNNPWVsQyktKD99FtAEk49zu6s7J7Hqkd User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:3283 Date: 2003-12-09T17:55:04+01:00 List-Id: Mr. J. wrote: I forgot the cast. > 10x, but it still doesn't compiled : > ========================================== > for I in Arr'range loop > Process : > declare > Current_Vehicle : Jr.Vehicle.Vehicle'Class renames > Arr(I).all; Current_Vehicle : Jr.Vehicle.Vehicle'Class renames Jr.Vehicle.Vehicle'Class (Arr(I).all); > begin > if(Has_Exceeded(Current_Vehicle)) then > Put_Line("Exceeded"); > end if; > end Process; > end loop; Might you, get yourself a good Ada Book because you have problems with basic syntax problems while trying to do some advanced programing. Or look at some working programs - just for enlightenment: http://adacl.sourceforge.net/html/sarOAda-CommandLine__adb.htm#133_15 With Regards Martin -- mailto://krischik@users.sourceforge.net http://adacl.sourceforge.net