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-03 11:13:01 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: <3F7DBC1F.7060801@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: <3F7AC5B0.9080108@noplace.com> <3F7B7641.9030908@noplace.com> <3F7C8482.20102@comcast.net> <3F7D69EA.5030707@noplace.com> <3F7D6D38.3030703@noplace.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 03 Oct 2003 18:13:01 GMT NNTP-Posting-Host: 165.247.65.249 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1065204781 165.247.65.249 (Fri, 03 Oct 2003 11:13:01 PDT) NNTP-Posting-Date: Fri, 03 Oct 2003 11:13:01 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:163 Date: 2003-10-03T18:13:01+00:00 List-Id: But then just use String. The position I've been taking here is that if I need speed, or certainty about allocation or other issues - I use String. If not, I use Unbounded_String. I don't find enough nutritional value in Bounded_String to make it worth the relative incompatibility with the rest of the language's use of String - so when I need fixed maximum lengths, I use some version of String and I can easily put into it the 'Image of something or send it to Text_IO or compare it to literals or any number of other other conveniences without any extra with's, instantiations or type conversions. MDC Preben Randhol wrote: > > > I mean if you use Unbounded_Strings and you convert to a C array without > checking that the length is correct according to the length the C lib/db > expects. Of course there must be an error in the C part for this to > happen, but it usually is. Another is of course DOS attacks if you use a > Get_Line version that returns a Unbounded_String. > > > > Well Unbounded_Strings are quite slow if you deal with a lot of data. > > Preben -- ====================================================================== 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 ======================================================================