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.204.153.209 with SMTP id l17mr549592bkw.4.1335405619419; Wed, 25 Apr 2012 19:00:19 -0700 (PDT) MIME-Version: 1.0 Path: h15ni166125bkw.0!nntp.google.com!news1.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!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:00:12 -0500 Organization: Jacob Sparre Andersen Research & Innovation Message-ID: References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5><87wr54b43q.fsf@adaheads.sparre-andersen.dk> <87sjfsaw1r.fsf@adaheads.sparre-andersen.dk> NNTP-Posting-Host: static-69-95-181-76.mad.choiceone.net X-Trace: munin.nbi.dk 1335405616 31168 69.95.181.76 (26 Apr 2012 02:00:16 GMT) X-Complaints-To: news@jacob-sparre.dk NNTP-Posting-Date: Thu, 26 Apr 2012 02:00:16 +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:00:12-05:00 List-Id: "Jacob Sparre Andersen" wrote in message news:87sjfsaw1r.fsf@adaheads.sparre-andersen.dk... ... > One of the ideas discussed was to extend what you can control with > storage pools. (I've earlier argued for dereferencing being managed by > the storage pools. :-) We tried that for Ada 2012 (see AI05-0141-1) [truth-in-advertising: this was almost completely my idea]. We worked on it for a while, but some corners are pretty messy (especially the conversion rules), there was problems with distributed overhead (often, it's necessary to do these things for all storage pools, whether or not they use the facility) and eventually we decided that a high-level solution (user-defined references, 4.1.5 in the Ada 2012 standard) was better. Which leads to my question: what can you do with this that you can't do with the user-defined reference facility? After all, all you need to do to get user-defined *de*references is to create a "managed pointer" type that provides appropriate user-defined references. (I believe Christoph Grein has or soon will make an Ada 2012 version of his managed pointer packages that illustrates how its done.) After all, anything that encourages people to get explicit access types out of their visible specifications is a good thing. (Using access types when unnecessary should get people fifty lashes with a wet noodle. :-) Randy.