TEAM-ADA Archives

Team Ada: Ada Programming Language Advocacy


Options: Use Classic View

Use Proportional Font
Show HTML Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Colin Brown <[log in to unmask]>
Sat, 23 Dec 2000 17:46:41 +0800
text/plain (989 bytes) , text/html (1615 bytes)
I guess you could try a dynamic structure (eg list).
depending on what you want.

----- Original Message -----
From: "Jesse Farmer" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Saturday, December 23, 2000 8:59 AM
Subject: Setting sizes of Unconstrained Arrays

> Hi again..
> First, thanks to everyone who helped me with my question regarding
> I'm wondering how to set the size of an unconstrained array.  Basically,
> what I'd like to be able to do, is have an array that grows as I need it
> to.  If this isn't possible, I'm wondering if there is any way to modify
> the size of an array during run-time?  I really don't want to just make a
> large array, and use that, and hope that all my data will always fit into
> this array.
> I've tried using unconstrained arrays, and I just can't figure them
> out.  What good is it being unconstrained if you have to initialize it
> before you can use it?  I'm sure I'm missing something here, I'd be very
> grateful if someone could clue me in.
> Thanks for your time
> -Jesse Farmer