From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: about inheritance of subtypes and entities (such as constants) related to a type in the same package
Date: Thu, 31 May 2018 10:44:04 +0200
Date: 2018-05-31T10:44:04+02:00 [thread overview]
Message-ID: <peockk$1g59$1@gioia.aioe.org> (raw)
In-Reply-To: pemvqj$27l$1@franka.jacob-sparre.dk
On 2018-05-30 09:59 PM, Randy Brukardt wrote:
> "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de> wrote in message
> news:pemv0i$1clu$1@gioia.aioe.org...
> ...
>> I don't see any commonality. One method produces an independent type
>> another does a related types. If you mean specifically inheritance of
>> operations and the representation, that plays no role because of the
>> difference in the types.
>
> The OP was asking specifically why subtypes and objects aren't inherited, so
> it surely plays a role in answering him.
Why should subtypes be inherited? The question itself does not make
sense. A type cannot be inherited it is not a property of a type. [*]
I still see no relation. Ada subtype is a mechanism to produce an
equivalent type. It is fully orthogonal to other forms of inheritance.
> The difference in the definition of
> the types is irrelevant in how inheritance of other things is defined. One
> can argue that was wrong, but it is a fact.
Relevant is that no definition of inheritance in the mechanism A can
break the mechanism B as they produce different types.
-------------------
* It could be of the there were type-valued types (types type) +
inheritance from these 2nd-order types. Then a value (1st-order type) of
a 2nd-order type could be inherited, but that would have nothing to do
with inheritance from 1st-order types.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
next prev parent reply other threads:[~2018-05-31 8:44 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-26 16:14 about inheritance of subtypes and entities (such as constants) related to a type in the same package Mehdi Saada
2018-05-26 16:44 ` Mehdi Saada
2018-05-29 22:07 ` Randy Brukardt
2018-05-29 22:12 ` Randy Brukardt
2018-05-30 8:13 ` Dmitry A. Kazakov
2018-05-30 19:25 ` Randy Brukardt
2018-05-30 19:45 ` Dmitry A. Kazakov
2018-05-30 19:59 ` Randy Brukardt
2018-05-31 8:44 ` Dmitry A. Kazakov [this message]
2018-05-31 22:48 ` Randy Brukardt
2018-05-31 23:39 ` Mehdi Saada
2018-06-01 2:50 ` Shark8
2018-06-01 7:35 ` Dmitry A. Kazakov
2018-05-30 20:53 ` Dan'l Miller
2018-05-31 8:54 ` Dmitry A. Kazakov
2018-05-31 14:29 ` Dan'l Miller
2018-05-31 14:38 ` Dan'l Miller
2018-05-31 17:37 ` Dmitry A. Kazakov
2018-05-31 18:53 ` Dan'l Miller
2018-05-31 19:59 ` Dmitry A. Kazakov
2018-05-31 21:10 ` Dan'l Miller
2018-06-01 7:56 ` Dmitry A. Kazakov
2018-06-01 14:01 ` Dan'l Miller
2018-06-01 15:27 ` Dmitry A. Kazakov
2018-05-31 22:45 ` Randy Brukardt
2018-05-31 23:50 ` Dan'l Miller
2018-06-01 7:38 ` Dmitry A. Kazakov
2018-05-31 22:34 ` Randy Brukardt
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox