comp.lang.ada
 help / color / mirror / Atom feed
From: ANH_VO@udlp.com
To: comp.lang.ada@ada.eu.org
Subject: Storage Pool
Date: Wed, 13 Jun 2001 14:25:12 -0500
Date: 2001-06-13T14:25:12-05:00	[thread overview]
Message-ID: <mailman.992469018.6376.comp.lang.ada@ada.eu.org> (raw)

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

   procedure Allocate (
      Pool            : in out General_Pool;
      Storage_Address :    out System.Address;
      Size_In_Storage_Elements : in System.Storage_Elements.Storage_Count;
      Alignment       : in System.Storage_Elements.Storage_Count);

   procedure Deallocate (
      Pool            : in out General_Pool;
      Storage_Address : in     System.Address;
      Size_In_Storage_Elements : in System.Storage_Elements.Storage_Count;
      Alignment       : in System.Storage_Elements.Storage_Count);

   where type General_Pool (Size : System.Storage_Elements.Storage_Count;
                            User : access String ) is new
                       System.Storage_Pools.Root_Storage_Pool with private;
   ...

   or is it compiler dependent?
   
   Thanks.

   Anh Vo



             reply	other threads:[~2001-06-13 19:25 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-06-13 19:25 ANH_VO [this message]
2001-06-13 22:55 ` Storage Pool Robert A Duff
2001-06-15  1:02 ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox