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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,71c743c03ed191fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-09-15 11:28:01 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!skynet.be!skynet.be!freenix!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: Beginer problem: variable array size Date: 15 Sep 2002 20:27:16 +0200 Organization: Home - http://perso.wanadoo.fr/pascal.obry Message-ID: References: NNTP-Posting-Host: avelizy-103-1-2-90.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: wanadoo.fr 1032114480 4789 217.128.15.90 (15 Sep 2002 18:28:00 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 15 Sep 2002 18:28:00 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.90 Xref: archiver1.google.com comp.lang.ada:28989 Date: 2002-09-15T18:28:00+00:00 List-Id: "Nacho" writes: > That does not resolve the problem. I need to change the size of the array > after it has been created. With your solution once array_called_p has been > created it will never change its size. If you really want to have an array changing its size and keeping its current values I think you should build a proper abstraction and use it. It is a pain and error prone to call new/free in your code. If you are using GNAT you could use GNAT.Dynamic_Tables. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595