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,433c69d8e0b09b09 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!newshub.sdsu.edu!elnk-nf2-pas!newsfeed.earthlink.net!stamper.news.pas.earthlink.net!stamper.news.atl.earthlink.net!newsread2.news.atl.earthlink.net.POSTED!d9c68f36!not-for-mail From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: String References: <4315F027.3090304@obry.net> In-Reply-To: <4315F027.3090304@obry.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Message-ID: Date: Wed, 31 Aug 2005 19:16:02 GMT NNTP-Posting-Host: 209.165.23.88 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1125515762 209.165.23.88 (Wed, 31 Aug 2005 12:16:02 PDT) NNTP-Posting-Date: Wed, 31 Aug 2005 12:16:02 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: g2news1.google.com comp.lang.ada:4350 Date: 2005-08-31T19:16:02+00:00 List-Id: 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 ======================================================================