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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Controlled types as interfaces Date: Wed, 20 Aug 2014 15:38:59 +0200 Organization: cbb software GmbH Message-ID: <1xwb1tfalpvin$.1ck9odq42aikh.dlg@40tude.net> References: <17zg1do470nci.15209dgoz3ktk.dlg@40tude.net> Reply-To: mailbox@dmitry-kazakov.de NNTP-Posting-Host: yj8+JIQUMOEawvIM7K49kA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: 40tude_Dialog/2.0.15.1 X-Notice: Filtered by postfilter v. 0.8.2 Xref: news.eternal-september.org comp.lang.ada:21853 Date: 2014-08-20T15:38:59+02:00 List-Id: On Wed, 20 Aug 2014 15:50:58 +0300, Victor Porton wrote: > Dmitry A. Kazakov wrote: > >>> A similar thing can be made with Root_Stream_Type making it derived from >>> Root_Stream_Interface interface. >> >> Yes, of course. It was proposed multiple times, as I remember. But >> rejected as "not backward compatible." Though the compatibility issue was >> quite minor if any. > > We can make Root_Stream_Type a descendant of Root_Stream_Interface. Yes that was exactly the proposal (and for the pool's root type as well). > So old code can derive from Root_Stream_Type and this is backward > compatible. No. It was a different case. I don't remember the details. But the example was quite marginal and wrong code anyway, as I remember. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de