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,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 2002:ad4:5144:: with SMTP id g4mr8468259qvq.179.1579280170309; Fri, 17 Jan 2020 08:56:10 -0800 (PST) X-Received: by 2002:aca:889:: with SMTP id 131mr3961404oii.3.1579280170001; Fri, 17 Jan 2020 08:56:10 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!g89no6689925qtd.0!news-out.google.com!w29ni1536qtc.0!nntp.google.com!g89no6689919qtd.0!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 17 Jan 2020 08:56:09 -0800 (PST) In-Reply-To: <755521b8-d0a8-41bd-b547-da1136e3b8e1@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=185.22.143.198; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf NNTP-Posting-Host: 185.22.143.198 References: <755521b8-d0a8-41bd-b547-da1136e3b8e1@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5b231051-71cb-4b97-a1f4-b23332afc80a@googlegroups.com> Subject: Re: How to stop inheritance in a good way? From: AdaMagica Injection-Date: Fri, 17 Jan 2020 16:56:10 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader01.eternal-september.org comp.lang.ada:57862 Date: 2020-01-17T08:56:09-08:00 List-Id: Th=C3=A9re were many solutions presented, none really convincing. If you ha= ve full control over the inheritance hierarchy, you can design it as you wa= nt it to be. On the other hand, if the hierarchy is given, there is no good solution IMH= O. However, I have problems to see how a derived type might have less operatio= ns than the parent. But you can always override with a null procedure or ra= ise an exception, as has been proposed.