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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,54889de51045a215 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-22 00:31:54 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: += in ada Date: 22 Oct 2003 00:31:54 -0700 Organization: http://groups.google.com Message-ID: References: NNTP-Posting-Host: 63.194.87.148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1066807914 23431 127.0.0.1 (22 Oct 2003 07:31:54 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Wed, 22 Oct 2003 07:31:54 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:1377 Date: 2003-10-22T00:31:54-07:00 List-Id: Ole-Hjalmar Kristensen wrote in message news:... > >>>>> "cg" == christoph grein writes: > > R> procedure P is > >> > R> procedure Russ (X: in Boolean) is begin null; end Russ > >> > R> X, Y: Boolean > >> > R> begin > >> > R> Russ (X = Y) > >> > >> I think you have just illustrated his point .... > > cg> Who has illustrated whose point? > > Russ( x = y ) is a very poor substitute for Russ(x=>y). I can only > guess whether this means assignment of the local variable y to the > local variable x followed by a call to Russ with the value y OR a > binding of the local variable y to the formal parameter x of Russ. > Given that I am reasonably fluent in both C++ and Ada, I would really > be confused by this syntax. It means exactly the same thing as "russ(x=>y)". It's just a cleaner way to write it, exactly as it is done in Fortran and Python. By the way, am I the only one who noticed that the arrow is backward for this notation? The actual argument is getting put into the formal argument, not vice versa. That is, y is getting put into x, so the arrow should poing to the left: x<=y. I guess the right arrow was adopted because <= is used for "less than or equal to." I happen to think that no arrow is better than an arrow pointing in the wrong direction -- and its cleaner too.