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,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.205.131.16 with SMTP id ho16mr550454bkc.3.1335406089892; Wed, 25 Apr 2012 19:08:09 -0700 (PDT) MIME-Version: 1.0 Path: h15ni166140bkw.0!nntp.google.com!news1.google.com!news2.google.com!news.glorb.com!news.ecp.fr!news.jacob-sparre.dk!munin.jacob-sparre.dk!pnx.dk!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Wed, 25 Apr 2012 21:08:06 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1335406088 31529 69.95.181.76 (26 Apr 2012 02:08:08 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 26 Apr 2012 02:08:08 +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.6157 Date: 2012-04-25T21:08:06-05:00 List-Id: "Dmitry A. Kazakov" wrote in message news:mdgi0fhwon01$.18b871w98pjl6.dlg@40tude.net... ... > There is no means to flatten P making declarations of Q be directly > visible > for clients of P. E.g. something like > > package P is > package Q is new Foo (...); > use all Q; -- Make things from Q declared directly in P > end P; We tried to do this for Ada 2012; we made heroic efforts to do so. The problem is, this feature is a massive potential maintenance problem which destroys most of the Ada concepts of visibility and maintainablity. (It's all of the mistakes of package "use" multiplied a hundred-fold.) The biggest problem comes when there is a conflict between things declared in P and things declared in Q. Resolving that proved impossible without introducing major headaches. In the end, we abandoned it as just being too complex. That's too bad, because it *seems* important. Some of the attempts can be found in AI05-0135-1 and AI05-0135-2. I'd like to think that we explored every possible solution, and none of them work. Perhaps someone can find a solution that we didn't explore, but in the absence of that, I don't see a feature like this ever flying in Ada. Randy.