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,b188335b285a988 X-Google-Attributes: gid103376,public From: Matthew Heaney Subject: Re: Dynamically allocated array? Date: 1999/02/08 Message-ID: #1/1 X-Deja-AN: 442067887 Sender: matt@mheaney.ni.net References: <01be5305$731ee8e0$2604fbd1@longslide> NNTP-Posting-Date: Sun, 07 Feb 1999 20:03:46 PDT Newsgroups: comp.lang.ada Date: 1999-02-08T00:00:00+00:00 List-Id: "Craig Garrett" writes: > How does one dynamically allocate an array in Ada without using the > "declare" statement? procedure Op is O : String_Access := new String'("allocated"); begin O := new String'("another allocation"); end; But what's wrong with a declare block? declare Name : constant String := Get_Name (File); begin No heap is required...