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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,4cb1f8d1c17d39a8 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.30.34 with SMTP id p2mr2017920pbh.4.1320724581972; Mon, 07 Nov 2011 19:56:21 -0800 (PST) MIME-Version: 1.0 Path: h5ni11083pba.0!nntp.google.com!news1.google.com!goblin2!goblin.stu.neva.ru!newsfeed.x-privat.org!news.jacob-sparre.dk!pnx.dk!jacob-sparre.dk!ada-dk.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada 'hello world' for Android; success! Date: Mon, 7 Nov 2011 21:56:17 -0600 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <8239efcjuw.fsf@stephe-leake.org> <98ca5430-aa52-4e39-b789-70d0dd6adb46@d33g2000prb.googlegroups.com> <824nyrq5p6.fsf@stephe-leake.org> <4eac1ca1$0$7625$9b4e6d93@newsspool1.arcor-online.net> <82mxciogt0.fsf@stephe-leake.org> <4eafbc25$0$6575$9b4e6d93@newsspool3.arcor-online.net> <82mxcemscg.fsf@stephe-leake.org> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1320724580 20734 69.95.181.76 (8 Nov 2011 03:56:20 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Tue, 8 Nov 2011 03:56:20 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6109 Xref: news1.google.com comp.lang.ada:18851 Date: 2011-11-07T21:56:17-06:00 List-Id: "Robert A Duff" wrote in message news:wccpqhapgr5.fsf@shell01.TheWorld.com... > Stephen Leake writes: > >> But in general, the 'super' keyword in Java is a nice feature. There has >> been discussion of adding that feature to Ada; I forget what the problem >> was that ended up killing it. > > I don't remember, either. I can't think of any fatal flaws right now. It wasn't really killed, it's just useless. (I.e., we have Parent_Tag in package Ada.Tags, there just isn't a way to use that tag to directly control dispatching. *That* we tried to do, but the solutions were all considered heavy and not likely to be used. We ended up with the more specialized generic dispatching constructor.) > You would need to deal with the fact that a private type can have > a different parent from the corresponding full type. A private type doesn't have a parent, it has an "ancestor". That's probably what killed any high-level feature (Ada.Tags ignores privacy, of course, it's a runtime thing). There isn't any reasonable way to define the "parent" of a private type, and it would be trouble to have the result of T'Parent to be different depending on visibility. Randy.