From: Marin David Condic <nobody@noplace.com>
Subject: Re: String
Date: Wed, 31 Aug 2005 19:16:02 GMT
Date: 2005-08-31T19:16:02+00:00 [thread overview]
Message-ID: <SlnRe.4748$9i4.4449@newsread2.news.atl.earthlink.net> (raw)
In-Reply-To: <4315F027.3090304@obry.net>
Additional observation. The 'Length attribute only tells you about the
allocated space - not any sort of logical end of the string. Trailing
spaces, nulls, line terminators or any of the other mechanisms that
might tell you where the string stops (but not where the storage stops)
do NOT figure in to the value of the 'Length attribute.
This is often less than useful. I recommend that the reader look into
Ada.Strings.Unbounded (or Ada.Strings.Fixed) for strings that have
dynamic lengths.
MDC
Pascal Obry wrote:
>
>
> Just to point out that it is called an attribute in Ada.
>
> Pascal.
>
--
======================================================================
Marin David Condic
I work for: http://www.belcan.com/
My project is: http://www.jsf.mil/NSFrames.htm
Send Replies To: No.Mcondic.Spam@Del.Mindspring.Com
(Remove the "No.", ".Spam" and "Del." for the real address.)
"The Christian ideal has not been tried and found wanting. It has
been found difficult; and left untried."
-- G. K. Chesterton
======================================================================
next prev parent reply other threads:[~2005-08-31 19:16 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-31 16:52 String TC
2005-08-31 17:38 ` String Frode Tennebø
2005-08-31 18:00 ` String Pascal Obry
2005-08-31 19:16 ` Marin David Condic [this message]
2005-08-31 18:11 ` String Marc A. Criley
2005-08-31 18:37 ` String Martin Krischik
2005-09-02 13:52 ` String Preben Randhol
-- strict thread matches above, loose matches on Subject: below --
2003-05-31 8:55 String And838N
2003-05-31 9:38 ` String Pascal Obry
2003-05-31 9:40 ` String Pascal Obry
2003-05-31 9:39 ` String Sergey Koshcheyev
2003-06-01 3:03 ` String Jeffrey Carter
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox