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:25:05 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeed.gamma.ru!Gamma.RU!aaanet.ru!not-for-mail From: "Gary Lisyansky" Newsgroups: comp.lang.ada Subject: Re: How to make Ada a dominant language Date: Tue, 31 Jul 2001 11:22:12 +0400 Organization: AAA Intersvyaz Message-ID: <9k5mb4$1r9c$1@pa.aaanet.ru> References: <3B6555ED.9B0B0420@sneakemail.com> <9ff447f2.0107301653.c8f5e94@posting.google.com> <3B6624E6.DF734E5C@sneakemail.com> <3b66520b@pull.gecm.com> <3B665A01.54315D0C@sneakemail.com> NNTP-Posting-Host: 213.59.110.211 X-Trace: pa.aaanet.ru 996564132 60716 213.59.110.211 (31 Jul 2001 07:22:12 GMT) X-Complaints-To: usenet@news.aaanet.ru NNTP-Posting-Date: 31 Jul 2001 07:22:12 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Xref: archiver1.google.com comp.lang.ada:10833 Date: 2001-07-31T07:22:12+00:00 List-Id: "Russ Paielli" <18k11tm001@sneakemail.com> wrote in message news:3B665A01.54315D0C@sneakemail.com... > 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. > In Pascal, there's another convenient shortcut: INC(X, Y) is equivalent to X := X + Y and INC(X) to INC(X, 1). Both things can be implemented in Ada using generics, so there's no real need to make them an element of syntax. Gary > Russ