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.66.252.6 with SMTP id zo6mr9161538pac.29.1445456758746; Wed, 21 Oct 2015 12:45:58 -0700 (PDT) X-Received: by 10.182.72.132 with SMTP id d4mr167323obv.18.1445456758711; Wed, 21 Oct 2015 12:45:58 -0700 (PDT) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!news.glorb.com!kq10no20857331igb.0!news-out.google.com!z4ni27905ign.0!nntp.google.com!kq10no20857329igb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Wed, 21 Oct 2015 12:45:58 -0700 (PDT) In-Reply-To: <1e09jksdqcfyv.8f80k06gl5ye$.dlg@40tude.net> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=46.218.2.213; posting-account=21X1fwoAAABfSGdxRzzAXr3Ux_KE3tHr NNTP-Posting-Host: 46.218.2.213 References: <98fcf225-fdec-401c-80b3-321e2ac65f6b@googlegroups.com> <1e09jksdqcfyv.8f80k06gl5ye$.dlg@40tude.net> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Task interface and entries with aliased parameters From: Hadrien Grasland Injection-Date: Wed, 21 Oct 2015 19:45:58 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: news.eternal-september.org comp.lang.ada:28025 Date: 2015-10-21T12:45:58-07:00 List-Id: > He possibly meant Java interfaces as opposed to existing Ada 95 abstract > types. Ada 95 abstract type did everything Java interface do and more. >=20 > Interface as a separate type is indeed worthless. Interface as properties > of a type, a package, a subroutine is more than useful. It is impossible = to > program anything without the concept of the interface. >=20 > If Ada were a better language you would be able to strip the implementati= on > from any type: >=20 > Interface =3D Type - Implementation I like the idea of interfaces as separate types because it solves all the p= roblems of multiple inheritance, and provides a very nice way to specify a = shared interface to multiple objects and have the compiler enforce that sha= red interface as the objects are refactored, rewritten, etc. Regarding the last point, would you mean having a type attribute like Type'= Interface, that defines an interface composed of all of the type's primitiv= e operations ? But if so, is it really reasonable to define an interface from an implement= ation ? Shouldn't the interface be considered as a separate entity that is = shared by multiple types ?