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 X-Google-Thread: 103376,2107bed9c7be998f X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: Why can't I override these functions? Date: Sat, 08 May 2004 08:15:56 +0200 Organization: AdaCL Message-ID: <4081602.8xjHSFNgAH@linux1.krischik.com> References: <7BRmc.58437$mU6.237336@newsb.telia.net> Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: news.t-online.com 1084030370 07 24930 BJz0Go8rOkv0fsU 040508 15:32:50 X-Complaints-To: usenet-abuse@t-online.de X-ID: TFBIrEZrwe+zDe8WZ8Y+TIH1xipX8j+jF36l-CQardfDIkw6HVW7rj User-Agent: KNode/0.7.7 Xref: controlnews3.google.com comp.lang.ada:390 Date: 2004-05-08T08:15:56+02:00 List-Id: Bj�rn Persson wrote: > Georg Bauhaus wrote: > >> Bj�rn Persson wrote: >> >> : extracted-discrete_parameters.ads:19:09: type must be declared abstract >> : or "Meaning" overridden >> >> FWIW, two things remove the complaint: >> 1/ removing private-ness > > Hmm, yes. And I only have to remove private-ness in the parent package. > How odd. (As if the whole thing weren't extremely odd already.) It is not odd. When the keyword "tagged" is only inside the private section then the "tag is hidden". Only child packages can see the tag and can extend the class. Remember, you can split the type into two parts: A partial public specification and a full private specification. > I want to avoid that of course. I would rather eliminate > Intermediate_Definition and derive directly from Parameter_Definition > (which also removes the complaint). It would increase code duplication, > but that's preferrable to making things public that should be private. The partial pubic and full private specification can inherit from different classes of the same class hirachie. With Regards Martin -- mailto://krischik@users.sourceforge.net http://www.ada.krischik.com