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/15 Message-ID: #1/1 X-Deja-AN: 161031980 references: organization: Courant Institute of Mathematical Sciences newsgroups: comp.lang.ada Date: 1996-06-15T00:00:00+00:00 List-Id: Hannes asks "I'm new to Ada and have a question on memory management. Is there a function like malloc in Ada ? I want just a pointer to a certain amount of raw storage. I think "new Storage_Array (n)" will give me a little bit too much storage. The array bounds need some space." It really would be better to say what problem you are trying to solve, than to ask for help for what seems a somewhat dubious solution (it sounds as though you are thinking at too low a level). Anyway you can probably do what you want by defininig an access type whose designated type is a constrained array of the size you want and allocating one of those (bounds probably are not needed in this case). But why not tell us what you are really trying to do?