comp.lang.ada
 help / color / mirror / Atom feed
From: AdaMagica <christ-usch.grein@t-online.de>
Subject: Re: How to stop inheritance in a good way?
Date: Fri, 17 Jan 2020 08:56:09 -0800 (PST)
Date: 2020-01-17T08:56:09-08:00	[thread overview]
Message-ID: <5b231051-71cb-4b97-a1f4-b23332afc80a@googlegroups.com> (raw)
In-Reply-To: <755521b8-d0a8-41bd-b547-da1136e3b8e1@googlegroups.com>

Thére were many solutions presented, none really convincing. If you have full control over the inheritance hierarchy, you can design it as you want it to be.

On the other hand, if the hierarchy is given, there is no good solution IMHO.

However, I have problems to see how a derived type might have less operations than the parent. But you can always override with a null procedure or raise an exception, as has been proposed.

  parent reply	other threads:[~2020-01-17 16:56 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-15  8:32 How to stop inheritance in a good way? reinert
2020-01-15  9:08 ` Dmitry A. Kazakov
2020-01-15 20:56 ` Randy Brukardt
2020-01-15 23:19 ` Jere
2020-01-17  9:48   ` reinert
2020-01-17 21:17     ` Optikos
2020-01-17 13:39 ` Shark8
2020-01-20  4:32   ` ric.wai88
2020-01-17 16:56 ` AdaMagica [this message]
2020-01-17 23:51   ` Jeffrey R. Carter
replies disabled

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