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=0.4 required=5.0 tests=BAYES_00,DATE_IN_PAST_24_48, FORGED_GMAIL_RCVD,FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,d5b211b0c1ffcf3e X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Received: by 10.204.141.4 with SMTP id k4mr398469bku.6.1339692802803; Thu, 14 Jun 2012 09:53:22 -0700 (PDT) Path: e27ni47952bkw.0!nntp.google.com!news1.google.com!postnews.google.com!re7g2000pbc.googlegroups.com!not-for-mail From: quiet_lad Newsgroups: comp.lang.ada Subject: Re: Practicalities of Ada for app development Date: Wed, 13 Jun 2012 03:31:50 -0700 (PDT) Organization: http://groups.google.com Message-ID: <92d44fa9-03ac-4f3a-84ba-4c73bf59392b@re7g2000pbc.googlegroups.com> References: <79c5c9f7-4b72-4990-8961-b3e2db4db79b@qz1g2000pbc.googlegroups.com> <98ef69fe-f5af-485b-89b2-9358059f4582@googlegroups.com> NNTP-Posting-Host: 173.60.202.188 Mime-Version: 1.0 X-Trace: posting.google.com 1339583838 5808 127.0.0.1 (13 Jun 2012 10:37:18 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 13 Jun 2012 10:37:18 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: re7g2000pbc.googlegroups.com; posting-host=173.60.202.188; posting-account=P7XY3woAAADWVZ3Q8yfcXP4_h9XhQ8Kj User-Agent: G2/1.0 X-HTTP-UserAgent: Opera/9.80 (X11; FreeBSD 9.0-RELEASE amd64; U; en) Presto/2.10.229 Version/11.60,gzip(gfe) Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2012-06-13T03:31:50-07:00 List-Id: On Jun 10, 8:49=A0am, Shark8 wrote: > On Saturday, June 9, 2012 4:25:05 AM UTC-5, Nomen Nescio wrote: > > > Ada is (by design) a safe language. =A0But the side effect is that > > strings are arrays of characters and the developer is forced to be > > mindful of boundaries.. bogged down with detail. > > And yet, if we were not mindful of [array] bounds, we would be screaming = at all the times using strings caused a buffer-overflow. > > There are ways to "work around" the problem, like the reading long/variab= le-length strings piece-at-a-time and constructing the result inside a func= tion. (Using recursion:http://www.adapower.com/index.php?Command=3DClass&Cl= assID=3DBasics&CID=3D202) > > That said, there are languages that are made for text processing, SNOBOL = [IIRC] is one such language. (Also, I think there's an Ada port of the SPIT= BOL macros as part of the GNAT-specific packages.) Ironically, most of them= aren't used in the mainstream of software development which tends to fall = back on C's string manipulation [style of] functions or Regex (which is hor= rible if you look at Regex from a maintenance perspective.). How handle the strings without regex?