* Re: Dynamically allocated array?
[not found] <01be5305$731ee8e0$2604fbd1@longslide>
@ 1999-02-08 0:00 ` Matthew Heaney
0 siblings, 0 replies; only message in thread
From: Matthew Heaney @ 1999-02-08 0:00 UTC (permalink / raw)
"Craig Garrett" <cgarrett@siscom.net> 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...
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~1999-02-08 0:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <01be5305$731ee8e0$2604fbd1@longslide>
1999-02-08 0:00 ` Dynamically allocated array? Matthew Heaney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox