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,1116ece181be1aea X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-01 05:00:00 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!headwall.stanford.edu!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!not-for-mail Message-ID: <3F7AC1B4.304@noplace.com> From: Marin David Condic User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0.1) Gecko/20020823 Netscape/7.0 (OEM-HPQ-PRS1C03) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Is the Writing on the Wall for Ada? References: <1064527575.648809@master.nyc.kbcfp.com> <3F739C1D.4030907@attbi.com> <3F78E850.8010401@comcast.net> <3F797748.3000203@noplace.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 01 Oct 2003 11:59:59 GMT NNTP-Posting-Host: 165.247.66.46 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1065009599 165.247.66.46 (Wed, 01 Oct 2003 04:59:59 PDT) NNTP-Posting-Date: Wed, 01 Oct 2003 04:59:59 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:59 Date: 2003-10-01T11:59:59+00:00 List-Id: I understand when its appropriate and why it may hve been included. I'm wondering if in *practice* people actually make much use of it. To create it from String is near trivial (just a record with a string and a discriminant - Been there. Done that. Got the Ada83 T-Shirt.) and most of the places where I would have put it to use, the type String works pretty much as well. You can look for the last non-blank character and treat that as the end of the string, so its semi-flexible and of a fixed maximum length. I'm not really complaining that it exists - at least not that much. It just seems that it is of marginal usefulness and now means that any extensions to Ada involving strings has to support three variants instead of two if you want to keep things orthogonal. (Creating a Text_IO variant for String, Bounded_String and Unbounded_String along with whatever else seems to need such variants.) Like I said, I've never personally used it for anything (and yes, I do embedded work as well as other things) and I'm wondering if others have actually used it in practice or do people just hop over to Unbounded_String the instant the type String seems to be the wrong answer. MDC Mark A. Biggar wrote: > > Bounded string is suppose to be for those cases where you need strings > that vary in length but also don't want to or can't support heap > allocation of string buffers (embedded, etc.). It's a small but > necessary nitch. > -- ====================================================================== Marin David Condic I work for: http://www.belcan.com/ My project is: http://www.jsf.mil/NSFrames.htm Send Replies To: m c o n d i c @ a c m . o r g "All reformers, however strict their social conscience, live in houses just as big as they can pay for." --Logan Pearsall Smith ======================================================================