comp.lang.ada
 help / color / mirror / Atom feed
From: "Marin David Condic" <marin.condic.auntie.spam@pacemicro.com>
Subject: Re: Abstract Functions
Date: Mon, 16 Jul 2001 18:15:05 -0400
Date: 2001-07-16T22:15:06+00:00	[thread overview]
Message-ID: <9ivp1a$db2$1@nh.pace.co.uk> (raw)
In-Reply-To: 3B53601D.1295AF39@avercom.net

Interesting. I could have sworn that I waved it in front of the compiler and
heard it whine about having an abstract function on a non-abstract tagged
type. You are saying that I have to derive a whole new class from the
non-abstract and tag that type as being abstract? Just goes to show one more
example of Originality Through Incompetence! :-) Maybe I'll take another
SWAG at it, but basically I found a "better" way of doing the job that
involved restructuring the class heierarchy some. Hence, now everything is
abstract until it becomes concrete. But its good to know that a solution
does exist.

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/


"Tucker Taft" <stt@avercom.net> wrote in message
news:3B53601D.1295AF39@avercom.net...
>
> That's not true.  Abstractness is *not* inherited.  An
> abstract type can have a non-abstract parent, and vice-versa.
> So you could have a useful non-abstract "grandparent" type,
> an abstract immediate parent, and then a non-abstract
> child of this parent.  Also remember that functions that
> return the type will automatically become abstract on
> inheritance, and thereby require overriding.
>






  reply	other threads:[~2001-07-16 22:15 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
2001-07-16 21:43     ` Tucker Taft
2001-07-16 22:15       ` Marin David Condic [this message]
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