comp.lang.ada
 help / color / mirror / Atom feed
From: James Rogers <jimmaureenrogers@worldnet.att.net>
Subject: Re: Strings dynamic
Date: Wed, 11 Apr 2001 22:29:49 GMT
Date: 2001-04-11T22:29:49+00:00	[thread overview]
Message-ID: <3AD4DB63.4136CD0A@worldnet.att.net> (raw)
In-Reply-To: PPGTqiNch2sc@zipi.fi.upm.es

g990406@zipi.fi.upm.es wrote:
> 
> Hello,
> i have a question for all the group...i am a new ada programmer....
> i came from c and i want to know how to make strings dynamic, with length
> diffrentes... Thank you very much
> 
> Answers please to: rrilNOSPAMpm@arrakis.es
> 
> i am a student of computer sciencie

If you want a string to behave like a C string, use Ada.Strings.Bounded
package. This will allow you to define a maximum length for your
strings, then use that bounded string object to contain a string of
any length up to the maximum you specified.

If you want completely dynamic string handling, then use the
Ada.Strings.Unbounded package. This package give best flexibility,
but poorest performance due to dynamic memory allocation and
deallocation.

Jim Rogers
Colorado Springs, Colorado USA



  parent reply	other threads:[~2001-04-11 22:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-04-11 18:32 Strings dynamic g990406
2001-04-11 20:17 ` chris.danx
2001-04-11 21:00 ` Des Walker
2001-04-11 22:29 ` James Rogers [this message]
2001-04-12 15:03   ` Marin David Condic
     [not found]   ` <wTjB6.4345$FY5.306564@www.newsranger.com>
2001-04-20 11:52     ` Georg Bauhaus
replies disabled

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