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 X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-16 14:13:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!feed.news.nacamar.de!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: Mon, 16 Jun 2003 21:13:40 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3EE7CC70.E1FD3A67@adaworks.com> <3EECA772.4B662024@adaworks.com> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1055798020 14982 129.241.83.78 (16 Jun 2003 21:13:40 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Mon, 16 Jun 2003 21:13:40 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:39277 Date: 2003-06-16T21:13:40+00:00 List-Id: Bill Findlay wrote: > > I have said several times that I regard "idem" purely as a placeholder in > this discussion for a token to be determined. > OK fair enough. >> Personally I would rather have: >> >> Age'Inc (1); >> >> unless this has some sideeffects I don't know of. However one loose >> the possibility for: >> >> Age := idem * 3 + (idem/2 - 1); > > Well, you lose everything except addition. Quite a loss. Well there are discussions in criss cross here :-) Some want += for speed-up reasons, some want it for readability and some want a thing like idem to have the compiler unroll complicated functions if I understand correctly. At any rate I wouldn't mind seing Age'Inc (1); in addition to idem as it would help those who have complicated expressions they only need to increase by some number. -- �It's probably worth pointing out that C's pointer arithmetic is not only dangerous, and a significant source of errors, but it also makes programs run slower.� - James Kanze on comp.lang.ada,comp.lang.c++.moderated