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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,3f189dddb39442e6,start X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.68.135.106 with SMTP id pr10mr3920886pbb.3.1335390225222; Wed, 25 Apr 2012 14:43:45 -0700 (PDT) Path: r9ni98273pbh.0!nntp.google.com!news1.google.com!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail From: ytomino Newsgroups: comp.lang.ada Subject: Is Storage Subpool Example tested? Date: Wed, 25 Apr 2012 14:18:14 -0700 (PDT) Organization: http://groups.google.com Message-ID: <17281761.1787.1335388694731.JavaMail.geo-discussion-forums@pbcrp8> NNTP-Posting-Host: 114.150.55.69 Mime-Version: 1.0 X-Trace: posting.google.com 1335390224 12677 127.0.0.1 (25 Apr 2012 21:43:44 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 25 Apr 2012 21:43:44 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=114.150.55.69; posting-account=Mi71UQoAAACnFhXo1NVxPlurinchtkIj User-Agent: G2/1.0 Content-Type: text/plain; charset=ISO-8859-1 Date: 2012-04-25T14:18:14-07:00 List-Id: Hello. I'm trying to compile http://ada-auth.org/standards/12rm/html/RM-13-11-6.html , but there are some errors. Perhaps, 1. "use type System.Storage_Pools.Subpools.Subpool_Handle;" is missing. 2. 2nd parameter of Set_Pool_of_Subpool is "in out", but access value is given. 3. Downcast as MR_Subpool is missing in > Result.Start := Pool.Next_Allocation; 4. ".Start" is missing in > Pool.Next_Allocation := Pool.Markers(Pool.Current_Pool); (And, I had to replace some 'Unchecked_Access to 'Unrestricted_Access, but this is GNAT's feature. I don't care it.) BTW, Do you have a interesting idea to use subpools? For instance, I like Matthew Heaney's System.Initialization. ( http://www.ada-auth.org/cgi-bin/cvsweb.cgi/ai05s/ai05-0001-1.txt?rev=1.17 ) It seems to be able to implement by user with subpool. P := System.Initialization.New_Object (Storage); is able to be rewritten like below P := new (Make_Subpool_Using_Given_Address (Storage'Address)) Object_Type; However, Delete_Object is difficult. :-)