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=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:a6b:d405:: with SMTP id l5-v6mr3404024iog.70.1527777530568; Thu, 31 May 2018 07:38:50 -0700 (PDT) X-Received: by 2002:a9d:5887:: with SMTP id x7-v6mr294126otg.14.1527777530323; Thu, 31 May 2018 07:38:50 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!feeder3.usenet.farm!feed.usenet.farm!feeder.usenetexpress.com!feeder-in1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!v8-v6no906772itc.0!news-out.google.com!b185-v6ni1019itb.0!nntp.google.com!u74-v6no912259itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 31 May 2018 07:38:50 -0700 (PDT) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=47.185.233.194; posting-account=zwxLlwoAAAChLBU7oraRzNDnqQYkYbpo NNTP-Posting-Host: 47.185.233.194 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: about inheritance of subtypes and entities (such as constants) related to a type in the same package From: "Dan'l Miller" Injection-Date: Thu, 31 May 2018 14:38:50 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:52812 Date: 2018-05-31T07:38:50-07:00 List-Id: On Thursday, May 31, 2018 at 9:29:04 AM UTC-5, Dan'l Miller wrote: > 2) in derived types: =E2=80=A6 made incompatible to be called using the = parent type and vice versa when appearing > as parameters to routines. I misspoke by trying to be too concise there in the =E2=80=9Cvice versa=E2= =80=9D. I meant: =E2=80=A6 made incompatible to be called using the paren= t type or any other subtypes of the parent when the subtype appears as para= meters to routines. Lack of ability to substitute a parent for a subtype and lack of ability to= substitute peer subtypes among a class-of-subtypes are anti-properties of = inheritance, i.e., counter-examples disproving inheritance.