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-Thread: 103376,ca20ac98709f9b4a X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!feeder3.cambrium.nl!feed.tweaknews.nl!2001:4de0:1::3.MISMATCH!ramfeed2.eweka.nl!lightspeed.eweka.nl!81.171.88.16.MISMATCH!eweka.nl!hq-usenetpeers.eweka.nl!69.16.177.246.MISMATCH!cyclone03.ams.highwinds-media.com!news.highwinds-media.com!npeersf01.ams.highwinds-media.com!newsfe18.ams2.POSTED!40385e62!not-for-mail From: Per Sandberg User-Agent: Thunderbird 2.0.0.16 (Windows/20080708) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Array of Strings References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <8n3zk.30723$2f5.9990@newsfe18.ams2> X-Complaints-To: abuse@WWWSpace.NET NNTP-Posting-Date: Sun, 14 Sep 2008 07:50:28 UTC Date: Sun, 14 Sep 2008 09:45:57 +0000 Xref: g2news1.google.com comp.lang.ada:2017 Date: 2008-09-14T09:45:57+00:00 List-Id: You could also go for the Ada containers approach and get vector semantics's. with Ada.Containers.Indefinite_Vectors; procedure Demo is package String_Vectors is new Ada.Containers.Indefinite_Vectors (Natural, String); V : String_Vectors.Vector; begin V.Append ("Tell Me"); V.Append ("Tell You"); end Demo; /Per jedivaughn wrote: > Hi everyone, > > I'm having trouble making a array of type string. can some one show me > how to do this. I've tried type letters is array (Integer range <>) of > String; but I get error "unconstrained element type in array > declaration". what am I doing wrong? > > Thanks, > > John