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,fe8fca999e54f9fe X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-08-20 08:11:32 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: how to create an array of N elements? Date: 20 Aug 2002 11:08:35 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3D5E76C3.1070005@cogeco.ca> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1029856673 25696 128.183.220.71 (20 Aug 2002 15:17:53 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 20 Aug 2002 15:17:53 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:28250 Date: 2002-08-20T15:17:53+00:00 List-Id: jonas.gasser@dataflow.ch (drmed) writes: > thank you. > > then an other question: > > list : unbounded_string; > type page is array(Positive range <>) of list; > text : page(1 .. 300); This is not legal Ada; "list" is an object, not a type. Perhaps you should pick a less ambitious project while you are still learning Ada? > but how can I change the number of elements in runtime? for example > I delete a element of the array text or add one so that the array > text now has only 200 elements and really only 200 elements and not > contain a null string. You need an unbounded container package. See the Booch components (http://www.adapower.com/booch/overview.html), or SAL (http://users.erols.com/leakstan/Stephe/Ada/sal.html), or others at http://www.adapower.com/ > > > jonas -- -- Stephe