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=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,fb1127aad0c1d01,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.226.10 with SMTP id ro10mr4256452pbc.6.1329412718214; Thu, 16 Feb 2012 09:18:38 -0800 (PST) Path: wr5ni32527pbc.0!nntp.google.com!news1.google.com!postnews.google.com!z9g2000vbv.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Reference counting access type Date: Thu, 16 Feb 2012 09:03:36 -0800 (PST) Organization: http://groups.google.com Message-ID: <27f8f1ab-c849-4a0b-ac3b-f279103babfc@z9g2000vbv.googlegroups.com> NNTP-Posting-Host: 91.7.75.42 Mime-Version: 1.0 X-Trace: posting.google.com 1329412718 20854 127.0.0.1 (16 Feb 2012 17:18:38 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 16 Feb 2012 17:18:38 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z9g2000vbv.googlegroups.com; posting-host=91.7.75.42; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HUALENKRC X-HTTP-UserAgent: Mozilla/5.0 (Windows NT 6.0; rv:10.0.1) Gecko/20100101 Firefox/10.0.1,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-02-16T09:03:36-08:00 List-Id: For a safe reference counting access type (any user deallocation prohibited, so the safety cannot be compromized - there are never dangling pointers) see http://www.christ-usch-grein.homepage.t-online.de/Ada/Smart_Pointers.html This follows strictly the example at AdaCore gem #107 http://www.adacore.com/2011/06/06/gem-107-preventing-deallocation-for-reference-counted-types/ There is a preview to the Ada 2012 implicit dereference aspect included (GNAT GPL 2011 does not yet fully support this).