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.3 required=5.0 tests=BAYES_00,INVALID_MSGID, MSGID_RANDY autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,10444cff97404845 X-Google-Attributes: gid103376,public From: Robert Dewar Subject: Re: C like op= proposal Date: 1999/08/19 Message-ID: <7phvk7$jt2$1@nnrp1.deja.com>#1/1 X-Deja-AN: 514839256 References: <7pefco$v7o$1@nnrp1.deja.com> <37BBA5E1.13FBF70E@kvaerner.com> X-Http-Proxy: 1.0 x22.deja.com:80 (Squid/1.1.22) for client 205.232.38.14 Organization: Deja.com - Share what you know. Learn what you don't. X-Article-Creation-Date: Thu Aug 19 22:14:41 1999 GMT X-MyDeja-Info: XMYDJUIDrobert_dewar Newsgroups: comp.lang.ada X-Http-User-Agent: Mozilla/4.04 [en] (OS/2; I) Date: 1999-08-19T00:00:00+00:00 List-Id: In article <37BBA5E1.13FBF70E@kvaerner.com>, "Tarjei T. Jensen" wrote: . I > don't know if safety critical applications would want to use > it, That's a *really* odd comment. If this notation is any use at all it is useful to make sources more readable and understandable (either informally or formally). The suggestion that it is somehow unsafe is entirely peculiar. > but it > would be simple to expand the @s before using the source. Surely not! It never occurred to me that people intended this as having macro substitution semantics. UGH! shades of the unexpected effects of using ++ within C defines. > So count me in on those who prefer a := @ + 1; over a += 1; The notation a += 1; is entirely foreign to Ada style syntax, it is a C-ism which has no more place in Ada than the (rather horrible) C assignment syntax: a = 1; The proper syntactic form for this in Ada would be (borrowing from the Algol tradition which is the fundamental inspiration for Ada syntax); a +:= 1; The problems with the above notation are not syntactic, they are semantic, and have been discussed at length previously. Sent via Deja.com http://www.deja.com/ Share what you know. Learn what you don't.