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!fu-berlin.de!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: Mon, 08 Dec 2003 20:17:18 +0100 Organization: AdaCL Message-ID: <1415376.MNGkSUPfu3@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 1070912243 03 9724 ie8sG2q6We4OTo8 031208 19:37:23 X-Complaints-To: usenet-abuse@t-online.de X-ID: EqLStqZVZeBC8H-TMiu+Fi8eIYJa-b8z2XOcD8uIf5H-WvUhCK9WZt User-Agent: KNode/0.7.2 Xref: archiver1.google.com comp.lang.ada:3237 Date: 2003-12-08T20:17:18+01:00 List-Id: Mr. J. wrote: I show you the verbose way of typing it: > for I in Arr'range loop > if(Has_Exceeded(Arr(2).all)) then Process : declare Current_Vehicle : Vehicle'Class renames Arr(I).all; begin if(Has_Exceeded(Current_Vehicle)) then > Put_Line("Exceeded"); > > end if; end Process; > end loop; > > end Q1; In Ada dispaching is not done by writing "virtual" when declaring the function but by using 'Class when calling the function. With Regards Martin -- mailto://krischik@users.sourceforge.net http://adacl.sourceforge.net