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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,4f788831da4de764 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-11 10:27:26 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <9ihnia$i8h$1@nh.pace.co.uk> <6b_27.15423$Kf3.181711@www.newsranger.com> <9ihs6j$k33$1@nh.pace.co.uk> Subject: Re: Abstract Functions Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Wed, 11 Jul 2001 13:27:13 EDT Organization: http://www.newsranger.com Date: Wed, 11 Jul 2001 17:27:13 GMT Xref: archiver1.google.com comp.lang.ada:9811 Date: 2001-07-11T17:27:13+00:00 List-Id: In article <9ihs6j$k33$1@nh.pace.co.uk>, Marin David Condic says... > >That is one possible way to go. However, what I have is a working parent >type that does useful things in its own right. It would be useful to have a >way of keeping it executable, but adding one or more operations that would >require extension. Basically, if you have a type that is a few generations >down the inheritance tree and now want to add some abstract operations, the >only way to do that is make the whole tree of types abstract. I'd prefer not >to do that. It's been a while, but I'm pretty sure you can do an "is abstract new ...", even if the parent type isn't abstract. >A question I could get answered by the compiler, but maybe this is less >typing: Can I have an abstract tagged type that has data fields? My Yup. Beging able to have non-abstract primitive wouldn't be of much use if there weren't some existing fields for the subprogram to operate on. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html home email - mailto:dennison@telepath.com