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,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-31 00:38:14 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!news-hog.berkeley.edu!ucberkeley!newshub.sdsu.edu!newspeer.cts.com!galanthis.cts.com!127.0.0.1.MISMATCH!not-for-mail Sender: kst@king.cts.com Newsgroups: comp.lang.ada Subject: Re: How to make Ada a dominant language References: <3B6555ED.9B0B0420@sneakemail.com> <9ff447f2.0107301653.c8f5e94@posting.google.com> <3B6624E6.DF734E5C@sneakemail.com> <3b66520b@pull.gecm.com> <3B665A01.54315D0C@sneakemail.com> From: Keith Thompson Date: 31 Jul 2001 00:38:13 -0700 Message-ID: X-Newsreader: Gnus v5.5/Emacs 20.3 NNTP-Posting-Host: 209.68.192.180 X-Trace: 996565093 nntp.cts.com 283 209.68.192.180 Xref: archiver1.google.com comp.lang.ada:10836 Date: 2001-07-31T00:38:13-07:00 List-Id: Russ Paielli <18k11tm001@sneakemail.com> writes: > Martin Dowie wrote: > > > > Russ Paielli <18k11tm001@sneakemail.com> wrote in message > > news:3B6624E6.DF734E5C@sneakemail.com... > > > But "x = 4" means that, immediately after the statement is executed, x > > > indeed equals 4. I don't see a problem with using "=" for both > > > > so what does "X = X + 1" mean? This was part of the reason > > why ":=" has been used in many languages (before Ada was ever > > conceived). > > Actually, I like the C way of writing this: "x += 1". It's a minimal > form. It's much cleaner if the variable name is long. I think C got this > one right. But "x = x + 1" is also perfectly valid C. For that matter, "x = foo(x)" and "x = x->next" are also valid C, and there are no corresponding compound assignment operators for these operations. -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> Cxiuj via bazo apartenas ni.