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 05:36:23 PST Path: archiver1.google.com!news2.google.com!newsfeed.stanford.edu!cyclone.bc.net!sjc70.webusenet.com!news.webusenet.com!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: <3F7D6D38.3030703@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> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Fri, 03 Oct 2003 12:36:22 GMT NNTP-Posting-Host: 165.247.66.247 X-Complaints-To: abuse@earthlink.net X-Trace: newsread2.news.atl.earthlink.net 1065184582 165.247.66.247 (Fri, 03 Oct 2003 05:36:22 PDT) NNTP-Posting-Date: Fri, 03 Oct 2003 05:36:22 PDT Organization: EarthLink Inc. -- http://www.EarthLink.net Xref: archiver1.google.com comp.lang.ada:153 Date: 2003-10-03T12:36:22+00:00 List-Id: Bzzzzt. Wrong answer. Type String is NOT going to let you overflow any buffers either, is it? Last time I checked, you can't index off the end of a String. (Or is that about to change in Ada0x? :-) Second, if I'm interfacing to C a) I'll bet it won't take a Bounded_String to begin with - must convert to something C can recognize - and b) all bets are off the instant you gave the address of your parameter to C. C doesn't feel any moral obligation whatsoever to respect Ada's bounds checking and a Bounded_String is just another chunk of memory to it. So I just don't see how I get *anything* of any really big advantage by using Bounded_String. I get X amount of nuisance and Y amount of extra advantage and X - Y is greater than zero. MDC Preben Randhol wrote: > On 2003-10-03, Marin David Condic wrote: > >>And what do I get for the extra effort? > > > No buffer overflow f.ex. Especially if your interfacing a database or > library written in C. > > 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 ======================================================================