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,c22608a39b6f5e7b X-Google-Attributes: gid103376,public From: tmoran@bix.com (Tom Moran) Subject: Re: Dynamic Array Sizing Date: 1999/06/19 Message-ID: <376bc856.474717@news.pacbell.net>#1/1 X-Deja-AN: 491466898 References: <376B1811.666F042@hotmail.com> X-Complaints-To: abuse@pacbell.net X-Trace: typhoon-sf.snfc21.pbi.net 929810739 206.170.2.115 (Sat, 19 Jun 1999 09:45:39 PDT) Organization: SBC Internet Services NNTP-Posting-Date: Sat, 19 Jun 1999 09:45:39 PDT Newsgroups: comp.lang.ada Date: 1999-06-19T00:00:00+00:00 List-Id: >type Array_Store is array (integer range <>) of boolean; >I have to declare an actual array sometime before reading the values >into the array, but don't know what size to make the array. You don't say if the array is a little thing or a very big thing. How about declaring it "more than big enough" and then letting your virtual memory simply never allocate any real memory for the part that isn't used. > functions which are externally >available outside this package to lookup the array values. In order to >do so, I will need to have the funcitons inside the declare block so >they can access the array Could the functions be in a generic which is instantiated when the needed size is known?