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,d3d9a6aa6a38a7e6,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.227.67 with SMTP id ry3mr3126626pbc.8.1341000468915; Fri, 29 Jun 2012 13:07:48 -0700 (PDT) Path: l9ni283pbj.0!nntp.google.com!news2.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: AdaMagica Newsgroups: comp.lang.ada Subject: Smart_Pointers with Ada 2012 functionality Date: Fri, 29 Jun 2012 13:00:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: NNTP-Posting-Host: 91.7.70.150 Mime-Version: 1.0 X-Trace: posting.google.com 1341000467 30084 127.0.0.1 (29 Jun 2012 20:07:47 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 29 Jun 2012 20:07:47 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=91.7.70.150; posting-account=rmHyLAoAAADSQmMWJF0a_815Fdd96RDf User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-06-29T13:00:50-07:00 List-Id: Now that GNAT GPL 2012 implementing full Ada 2012 is out, my reference counted access types use the new aspect Implicit_Dereference, which greatly simplifies the syntax. (The previous Ada 2005 implementation is also availible.) This package provides a completely safe implementation in that it prevents deallocation by the user; deallocation is under sole control of the implementation. (It's however not task-safe.) Full documentation and test programs show how to use the package. http://www.christ-usch-grein.homepage.t-online.de/Ada/Smart_Pointers.html