comp.lang.ada
 help / color / mirror / Atom feed
From: Ted Dennison<dennison@telepath.com>
Subject: Re: Abstract Functions
Date: Wed, 11 Jul 2001 17:27:13 GMT
Date: 2001-07-11T17:27:13+00:00	[thread overview]
Message-ID: <R%%27.15564$Kf3.188158@www.newsranger.com> (raw)
In-Reply-To: 9ihs6j$k33$1@nh.pace.co.uk

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



  parent reply	other threads:[~2001-07-11 17:27 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-11 14:24 Abstract Functions Marin David Condic
2001-07-11 15:22 ` Ted Dennison
2001-07-11 15:43   ` Marin David Condic
2001-07-11 16:35     ` Ehud Lamm
2001-07-11 17:08       ` Marin David Condic
2001-07-11 17:27     ` Ted Dennison [this message]
2001-07-16 21:43     ` Tucker Taft
2001-07-16 22:15       ` Marin David Condic
2001-07-16 21:51     ` Stephen Leake
  -- strict thread matches above, loose matches on Subject: below --
2001-07-11 14:49 Re[2]: " ANH_VO
2001-07-11 19:01 ` tmoran
2001-07-12 14:10   ` Marin David Condic
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox