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, LOTS_OF_MONEY autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-16 10:43:27 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: 16 Jun 2003 10:43:26 -0700 Organization: http://groups.google.com/ Message-ID: References: <3EE7CC70.E1FD3A67@adaworks.com> <3EECA772.4B662024@adaworks.com> <1akHa.59$Rk4.4201@eagle.america.net> NNTP-Posting-Host: 128.102.146.44 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1055785406 411 127.0.0.1 (16 Jun 2003 17:43:26 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 16 Jun 2003 17:43:26 GMT Xref: archiver1.google.com comp.lang.ada:39262 Date: 2003-06-16T17:43:26+00:00 List-Id: Larry Hazel wrote in message news:<1akHa.59$Rk4.4201@eagle.america.net>... > Bill Findlay wrote: > > On 16/6/03 06:10, in article iicHa.1009748$Zo.229290@sccrnsc03, "Steve" > > wrote: > > > > > >>BTW: I don't really like the "+=" syntax, I like the functionality. I would > >>prefer something that is easier to distinguish, but has the same function. > >>I don't have anything I think is a good syntax though. > >> > >>For "count := count + 3: I've considered: > >> > >>"+".(count, 3); > >>count'In_Place( "+", 3 ); > >>Integer'In_Place( count, 3, "+" ); > >> > >>With a good syntax, such functionality would I think be a good thing. > > > > > > count := idem + 3; > > > > shiftTally(shift)(dayOfWeek(month).tallyIndex).sortTally(s).nbRejects := > > idem + 1; > > > > Where "idem" represents a token, to be decided upon, that denotes the > > variable on the LHS of the assignment. > > > I like it. Except for a possible conflict with the concatenation > operator, "&" would be a good choice for people familiar with the > substitution command in the unix editors .. vi, ed, and sed. > > Larry Given Mr. Riehle's and others' concerns about "+=", I could actually go along with something like this. How about "@" to represent the value of the left side?