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: border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!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 09:29:22 +0200 Organization: cbb software GmbH Message-ID: <17zg1do470nci.15209dgoz3ktk.dlg@40tude.net> References: 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: number.nntp.dca.giganews.com comp.lang.ada:188578 Date: 2014-08-20T09:29:22+02:00 List-Id: On Wed, 20 Aug 2014 04:09:15 +0300, Victor Porton wrote: > Victor Porton wrote: >> I think in Ada 202X we can invent Limited_Controlled_Interface and >> Controlled_Interface types derived from which could become controlled. Yes, but that would be very complicated, because you could add an interface very late, making a descendant of a non-controlled type controlled. A better solution would be fixing initialization (AKA constructors) and leaving controlled kludge as is. >> The Limited_Controlled and Controlled types would also inherit from these >> interfaces. >> >> I think, this is backward compatible. > > 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. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de