From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,8be18979db11f51c X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,fb631c9316319fef X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-02-28 10:36:40 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.direct.ca!look.ca!news-out.uswest.net!diablo.cs.uofs.edu!info.cs.scranton.edu!triangle.cs.uofs.edu!bill From: bill@triangle.cs.uofs.edu (Bill Gunshannon) Newsgroups: comp.os.vms,comp.sys.dec Subject: Re: Drop C/C++ better sooner than later Date: 28 Feb 2001 18:26:05 GMT Organization: University of Scranton Message-ID: <97jfrt$l7u$2@info.cs.uofs.edu> References: <97egck$vc6$3@info.cs.uofs.edu> <3A9AEFCD.AFC8431@infopuls.com> <97etsu$j41$1@pyrite.mv.net> <3A9B023A.CBD414A5@infopuls.com> <3A9C2B88.8032D829@infopuls.com> Reply-To: bill@cs.scranton.edu NNTP-Posting-Host: triangle.cs.uofs.edu X-Trace: info.cs.uofs.edu 983384765 21758 134.198.172.101 (28 Feb 2001 18:26:05 GMT) X-Complaints-To: news@cs.uofs.edu NNTP-Posting-Date: 28 Feb 2001 18:26:05 GMT X-Newsreader: xrn 9.01 Xref: supernews.google.com comp.os.vms:20562 comp.sys.dec:2928 In article , koehler@encompasserve.org (Bob Koehler) writes: |> In article <97j1jq$g00$1@info.cs.uofs.edu>, bill@triangle.cs.uofs.edu (Bill Gunshannon) writes: |> |> > Well, you need two symbols for "equals", comparison and assignment. |> > That is what the "=" means. |> |> No, "=" does not mean "equals". Not in any progamming language I've |> ever used. In the statement above I put it in quotes to try to force the implication that I was using it n the english and not the technical sense. When one is reading a statement in english and encounters the "=" symbol they say equals regardless of which meaning is intended. |> In C, C++, Java, and Fortran it means the exression on the |> left gets the value on the right. In some other langauge it means |> compare for equality. And in PL/1 it meant both, just like it does in english. Example: IF START = NULL THEN START = CURRENT_PRODUCT_PTR; (code fragment from "PL/I Structured Programming" by Joan K. Hughes) |> |> If "=" meant "equals", the following statement would be illegal: |> |> a = a + 1 If I were reading that statement to you in english I would say, " a equals a plus one ". Funny thing that english. Many teachers have this penchant for using the term "gets" for that usage, but that is jargon and is pretty much meaningless outside of a very small inner circle. People just don't talk that way. bill -- Bill Gunshannon | de-moc-ra-cy (di mok' ra see) n. Three wolves bill@cs.scranton.edu | and a sheep voting on what's for dinner. University of Scranton | Scranton, Pennsylvania | #include