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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,f868292008c639ce X-Google-Attributes: gid103376,public From: Robert A Duff Subject: Re: Java vs. Ada - strings (was: C vs. Ada - strings) Date: 2000/06/06 Message-ID: #1/1 X-Deja-AN: 631703786 Sender: bobduff@world.std.com (Robert A Duff) References: <390F0D93.F835FAD9@ftw.rsc.raytheon.com> <8en5o9$ihe$1@nnrp1.deja.com> <8eonos$e70$1@wanadoo.fr> <1fIU4.4668$Rx3.250161@typhoon.nyroc.rr.com> <3924B730.AFB52C1C@acenet.com.au> <39394E0B.75BD479C@telepath.com> <8hgb3m$bs$1@nnrp1.deja.com> <393BB65D.7891F819@quadruscorp.com> Organization: The World Public Access UNIX, Brookline, MA Newsgroups: comp.lang.ada Date: 2000-06-06T00:00:00+00:00 List-Id: "Marin D. Condic" writes: > Ted Dennison wrote: > > You're starting to get at my point here. Most of the "Ada's support for > > XXX sucks" folks come from the perspective of trying to use techniques > > designed around the features (and failings) of another language in Ada, > > rather than from a sober analysis of the full benefits and drawbacks of > > the supporting Ada features. If I were a betting man, I'd wager that > > this approach occured to you because you are used to using this > > (unusual) construct from a lanugage that makes it easy, and it would not > > have occurred at all in the code of a "native" Ada person. > > > This is exactly the situation when you watch a native C programmer try > to null terminate Ada strings and complain that there is no support in > the language for null terminated string processing. ... Yeah, but the original poster wasn't asking for nul-terminated strings -- he was asking for strings that can change their length. He said he wanted no type declarations or function calls, but I presume he really meant he wanted a concise notation. This was a pretty reasonable thing to ask for -- varying length strings with concise notation. So I think it's unfair to accuse him of not knowing the One True Glorious Ada Way. - Bob