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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,a760d4523f3aea17,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-06-13 16:33:21 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!newsfeed00.sul.t-online.de!t-online.de!fr.usenet-edu.net!usenet-edu.net!enst!enst.fr!not-for-mail From: ANH_VO@udlp.com Newsgroups: comp.lang.ada Subject: Re[2]: Storage Pool Date: Wed, 13 Jun 2001 16:22:07 -0500 Organization: ENST, France Sender: comp.lang.ada-admin@ada.eu.org Message-ID: Reply-To: comp.lang.ada@ada.eu.org NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 992475199 13497 137.194.161.2 (13 Jun 2001 23:33:19 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Wed, 13 Jun 2001 23:33:19 +0000 (UTC) To: comp.lang.ada@ada.eu.org Return-Path: Content-Description: cc:Mail note part Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org X-Mailman-Version: 2.0.4 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: comp.lang.ada mail<->news gateway List-Unsubscribe: , List-Archive: Errors-To: comp.lang.ada-admin@ada.eu.org X-BeenThere: comp.lang.ada@ada.eu.org Xref: archiver1.google.com comp.lang.ada:8703 Date: 2001-06-13T16:22:07-05:00 Bob, Could you elaborate more on your NO answer? I do not have enough evidence to say either way. However, based on test results from GNAT 3.13p, the answer is yes. I need to conduct further test using APEX and ObjectAda. If it works as GNAT, I will post the codes. A. Vo ____________________Reply Separator____________________ Subject: Re: Storage Pool Author: Robert A Duff Date: 6/13/01 10:55 PM ANH_VO@udlp.com writes: > Is it correct to assume that Size_In_Storage_Element mod Alignment = 0 for both > subprograms Allocate and Deallocate for any type derived from Root_Storage_Pool > as shown below No. But you can write a storage pool that requires that, and only use it for types that obey that rule. I have written storage pools that assume Alignment = 4 (and pragma-assert so). - Bob _______________________________________________