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 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Private extension of a synchronized interface Date: Mon, 18 Feb 2019 08:29:45 +0000 Organization: A noiseless patient Spider Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="be5f75c042c6e7a51c0c430d9866770f"; logging-data="3272"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FYrNaz1n2tC1nxm4hKR6F48OO0L6SCfc=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (darwin) Cancel-Lock: sha1:LnFVkn8MrASUdId3rKu9+2OnLtQ= sha1:QSPPXITaJ/XQVz2IU+EO7arNRyE= Xref: reader01.eternal-september.org comp.lang.ada:55560 Date: 2019-02-18T08:29:45+00:00 List-Id: "Dmitry A. Kazakov" writes: > You never need dispatch. When a type is derived it inherits all > primitive operations regardless overridings. > > 1. The type Instance in your example has p1 > > 2. Since Instance is not abstract p1 of Instance cannot be abstract. > > Therefore x.p1 must be legal. > > The actual behavior is certainly a bug in the language or in the > compiler or in both. You ought to distinguish between behaviour you disapprove of and behaviour which is illegal in Ada-as-it-is when people are sking for help with a current problem.