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,5800bd3879e0759a X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-04-11 15:30:08 PST Path: supernews.google.com!sn-xit-03!supernews.com!cyclone-sf.pbi.net!63.208.208.143!feed2.onemain.com!feed1.onemain.com!europa.netcrusader.net!204.127.161.3!wn3feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail Message-ID: <3AD4DB63.4136CD0A@worldnet.att.net> From: James Rogers X-Mailer: Mozilla 4.76 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Strings dynamic References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Wed, 11 Apr 2001 22:29:49 GMT NNTP-Posting-Host: 12.74.129.224 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 987028189 12.74.129.224 (Wed, 11 Apr 2001 22:29:49 GMT) NNTP-Posting-Date: Wed, 11 Apr 2001 22:29:49 GMT Organization: AT&T Worldnet Xref: supernews.google.com comp.lang.ada:6792 Date: 2001-04-11T22:29:49+00:00 List-Id: 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