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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,42a57c8ee023f14d X-Google-Attributes: gid103376,public From: dewar@cs.nyu.edu (Robert Dewar) Subject: Re: Q: memory management Date: 1996/06/16 Message-ID: #1/1 X-Deja-AN: 161181452 references: organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-06-16T00:00:00+00:00 List-Id: Jon Anthony said: "I don't know what "storage_array" is, but don't worry about the space for bounds. It's all taken care of for you." Once again, consulting another secret source of information, this time the Ada reference manual :-) we find 13.7.1 The Package System.Storage_Elements Static Semantics 1 The following language-defined library package exists: 2 package System.Storage_Elements is pragma Preelaborate(System.Storage_Elements); 3 type Storage_Offset is range implementation-defined; 4 subtype Storage_Count is Storage_Offset range 0..Storage_Offset'Last; 5 type Storage_Element is mod implementation-defined; for Storage_Element'Size use Storage_Unit; type Storage_Array is array (Storage_Offset range <>) of aliased Storage_Element; for Storage_Array'Component_Size use Storage_Unit; and indeed the original questioner was quite right to think in terms of using Storage_Array for allocating raw storage, that is EXACTLY what it is intended for. P.S. I find it very useful to have a straight ASCII version of the RM around that can instantly and easily be searched for the occurrence of a string like this. It's useful for finding something you don't know, or, as in this case, quickly tracking down a reference to something you do know.