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.4 required=5.0 tests=AC_FROM_MANY_DOTS,BAYES_00, LOTS_OF_MONEY 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 09:22:03 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!psinet-eu-nl!psiuk-p4!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: Abstract Functions Date: Wed, 11 Jul 2001 11:43:14 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: <9ihs6j$k33$1@nh.pace.co.uk> References: <9ihnia$i8h$1@nh.pace.co.uk> <6b_27.15423$Kf3.181711@www.newsranger.com> NNTP-Posting-Host: 136.170.200.133 X-Trace: nh.pace.co.uk 994866195 20579 136.170.200.133 (11 Jul 2001 15:43:15 GMT) X-Complaints-To: newsmaster@pace.co.uk NNTP-Posting-Date: 11 Jul 2001 15:43:15 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:9801 Date: 2001-07-11T15:43:15+00:00 List-Id: 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. Its the sort of thing where I've gone down a chain of inheritance and said "O.K. Now I need the user to provide me with some functions and I don't want to make this generic." I suppose I could use pointers to functions but I've never liked that answer. 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 recollection of examples I've seen have not had data - just null records. MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com Web: http://www.mcondic.com/ "Ted Dennison" wrote in message news:6b_27.15423$Kf3.181711@www.newsranger.com... > In article <9ihnia$i8h$1@nh.pace.co.uk>, Marin David Condic says... > > > > I believe you can have non-abstract primitive subprograms for abstract types. > What's wrong with doing that?