comp.lang.ada
 help / color / mirror / Atom feed
From: Per Sandberg <per.sandberg@bredband.net>
Subject: Re: Array of Strings
Date: Sun, 14 Sep 2008 09:45:57 +0000
Date: 2008-09-14T09:45:57+00:00	[thread overview]
Message-ID: <8n3zk.30723$2f5.9990@newsfe18.ams2> (raw)
In-Reply-To: <fda9aa48-6029-469e-82fb-20bb99d750c6@73g2000hsx.googlegroups.com>

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



  parent reply	other threads:[~2008-09-14  9:45 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-13 14:18 Array of Strings jedivaughn
2008-09-13 14:32 ` Ludovic Brenta
2008-09-14  0:11 ` anon
2008-09-14  9:45 ` Per Sandberg [this message]
2008-09-15 14:54 ` Adam Beneschan
2008-09-16 23:56   ` jedivaughn
2008-09-23 14:07     ` jedivaughn
2008-09-23 14:30       ` mockturtle
2008-09-23 14:41         ` Adam Beneschan
2008-09-23 14:47         ` Ludovic Brenta
2008-09-23 18:51       ` Jeffrey R. Carter
2008-09-24 12:00         ` jedivaughn
2008-09-24 14:36           ` Adam Beneschan
2008-09-24 15:13           ` John McCormick
2008-09-24 17:18           ` Jeffrey R. Carter
2008-09-28 12:24             ` jedivaughn
2008-09-28 13:01               ` mockturtle
2008-09-28 17:08                 ` jedivaughn
2008-09-29 11:14                   ` mockturtle
2008-09-28 19:00               ` Jeffrey R. Carter
2008-09-29 15:51                 ` Adam Beneschan
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox