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-12 01:23:48 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dmytrylavrov@fsmail.net (Dmytry Lavrov) Newsgroups: comp.lang.ada Subject: Re: += in ada Date: 12 Oct 2003 01:23:48 -0700 Organization: http://groups.google.com Message-ID: <49cbf610.0310120023.3056211e@posting.google.com> References: <3F7316F7.219F@mail.ru> <49cbf610.0310070205.2937e71a@posting.google.com> <49cbf610.0310101231.2358762a@posting.google.com> NNTP-Posting-Host: 213.248.15.31 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1065947028 29322 127.0.0.1 (12 Oct 2003 08:23:48 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sun, 12 Oct 2003 08:23:48 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:716 Date: 2003-10-12T01:23:48-07:00 List-Id: There are only one way to add "+=" (into ada and other languages) i would like: we should have something like this or language will be incomplete procedure inc(in out a:integer;in b:integer);infix; -- procedure-operator should always have zero priority(like :=) function and(in a,b:integer):integer;infix priority=2; --(same priority as "*") --infix function does not allowed to change operands (if we don't have this already ;-) and then a inc b and (c+d); We should be allowed to have infix operators,then we will be able to add z juliafractal c; in any case it's not a very big advantage for readability.IMO it's less readable,like notation without () . And i don't really need it.But i think += without it is bad idea. In math there are currently does not allowed to add new infix functions to +-*/ . Dmytry Lavrov, http://dmytrylavrov.narod.ru