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 10.55.170.195 with SMTP id t186mr7169307qke.26.1516917621596; Thu, 25 Jan 2018 14:00:21 -0800 (PST) X-Received: by 10.157.65.183 with SMTP id p52mr926900ote.3.1516917620865; Thu, 25 Jan 2018 14:00:20 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!border1.nntp.ams1.giganews.com!nntp.giganews.com!peer03.ams1!peer.ams1.xlned.com!news.xlned.com!peer02.am4!peer.am4.highwinds-media.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!s47no955451qta.0!news-out.google.com!e39ni120qtk.1!nntp.google.com!s47no955449qta.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Thu, 25 Jan 2018 14:00:20 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:191:8303:2100:7466:f44c:da21:40b1; posting-account=fdRd8woAAADTIlxCu9FgvDrUK4wPzvy3 NNTP-Posting-Host: 2601:191:8303:2100:7466:f44c:da21:40b1 References: User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <4b5de2e4-b5d6-4118-a99c-39dbc38ee13d@googlegroups.com> Subject: Re: interfaces and limited/controlled/limited-controlled types From: Robert Eachus Injection-Date: Thu, 25 Jan 2018 22:00:21 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Received-Body-CRC: 2505490035 X-Received-Bytes: 2099 Xref: reader02.eternal-september.org comp.lang.ada:50152 Date: 2018-01-25T14:00:20-08:00 List-Id: On Thursday, January 25, 2018 at 11:21:11 AM UTC-5, Mehdi Saada wrote: > Is it only because of history and compatibility issues, that Limited_Cont= rolled and Controlled aren't rewrote as interfaces ? > Like: T_type is limited new Ancestor_type with Controlled=20 > or T_type is new Ancestor_type with Limited_Controlled >=20 > Or is there a semantic issue too ? There is "stuff" in the private part and body of these packages, which need= s to be inherited by all controlled types. It is sort of irrelevant whethe= r these package bodies (and private parts) can be written in "pure" Ada. T= hese packages have been around since before Ada 83, when Ada compilers were= not written in Ada anyway, and interfaces did not exist.