From: "Mark D. McKinney" <mck1nney@ix.netcom.com>
Subject: Re: How do functions return unbounded arrays?
Date: 1998/06/17
Date: 1998-06-17T18:08:13-07:00 [thread overview]
Message-ID: <3587173B.6F26CC38@ix.netcom.com> (raw)
In-Reply-To: 1998061518584100.OAA28557@ladder01.news.aol.com
John Herro wrote:
>
> with Text_IO;
> procedure Test is
> S : String(1 .. 18);
> begin
> for L in Long_Integer range
> 10_000_000 .. 99_999_998 loop
-- This may work
-- Some compilers deallocate the space when exiting the scope of
a block.
Long_Integer_Conversion_Block:
begin
> S := Long_Integer'Image(L) &
> Long_Integer'Image(L + 1);
-- Memory dealloated when the block exits here.
end Long_Integer_Conversion_Block;
> end loop;
> end Test;
>
Meridian Ada (Perhaps thats what you're using) had this problem and
this was the solution recommended. Not all compilers do this.
MArk McKinney
next prev parent reply other threads:[~1998-06-17 0:00 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-06-14 0:00 How do functions return unbounded arrays? Markus Kuhn
1998-06-14 0:00 ` Robert A Duff
1998-06-15 0:00 ` John Herro
[not found] ` <35865075.9D7DCBD@cl.cam.ac.uk>
1998-06-17 0:00 ` Gavin Finnie
1998-06-17 0:00 ` Rod Chapman
1998-06-21 0:00 ` Robert Dewar
1998-06-21 0:00 ` Robert Dewar
1998-06-21 0:00 ` Robert Dewar
1998-06-17 0:00 ` Matthew Heaney
1998-06-21 0:00 ` Robert Dewar
1998-06-18 0:00 ` Mats Weber
1998-06-21 0:00 ` Robert Dewar
1998-06-17 0:00 ` Mark D. McKinney [this message]
1998-06-17 0:00 ` Matthew Heaney
1998-06-21 0:00 ` Robert Dewar
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox