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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,1cf653444208df72 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-05 21:22:36 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!unlnews.unl.edu!newsfeed.ksu.edu!nntp.ksu.edu!news.okstate.edu!not-for-mail From: David Starner Newsgroups: comp.lang.ada Subject: Re: ada vs. cpp Date: 6 Oct 2001 03:44:01 GMT Organization: Oklahoma State University Message-ID: <9plum1$7hu1@news.cis.okstate.edu> References: <9pgr68$7pu1@news.cis.okstate.edu> <3bbd6287.346843109@news.cis.dfn.de> <9pkco7$9qe1@news.cis.okstate.edu> <_pkv7.17320$ev2.27418@www.newsranger.com> <9pkrr9$9ic1@news.cis.okstate.edu> <3BBE01EB.973B7C5C@sparc01.ftw.rsc.raytheon.com> Reply-To: dstarner98@aasaa.ofe.org NNTP-Posting-Host: x8b4e53d2.dhcp.okstate.edu User-Agent: slrn/0.9.7.2 (Linux) Xref: archiver1.google.com comp.lang.ada:13822 Date: 2001-10-06T03:44:01+00:00 List-Id: On Fri, 05 Oct 2001 13:54:35 -0500, Wes Groleau wrote: > > > David Starner wrote: >> But that's not what he said. He said that C++ didn't have strings. And >> whether or not you like the way C++ handles it, it does have strings. > > Matter of mismatching definitions. C has what C defines as strings. > It does not have what many languages define as strings. From The Free On-line Dictionary of Computing (06 Jun 01) [foldoc]: string A sequence of {data} values, usually {bytes}, which usually stand for {characters} (a "character string"). [...] I'm sure other definitions can be offered, but when they're offered _here_ in order to say that C/C++ doesn't have strings, it just sounds like language bigotry. C has string literals, and C has character arrays that map to strings and a set of functions that treat them like strings. For the programmer, C has strings, no matter what a computer science theoretician might say. Honest evidence will get us a lot farther than random slams at other languages. -- David Starner - dstarner98@aasaa.ofe.org Pointless website: http://dvdeug.dhis.org "I saw a daemon stare into my face, and an angel touch my breast; each one softly calls my name . . . the daemon scares me less." - "Disciple", Stuart Davis