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-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-18 07:41:00 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newshub.sdsu.edu!news-xfer.cox.net!peer01.cox.net!cox.net!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-binary.blueyonder.co.uk.POSTED!53ab2750!not-for-mail User-Agent: Microsoft-Entourage/10.1.1.2418 Subject: Re: Ideas for Ada 200X "left hand side" repeater. From: Bill Findlay Newsgroups: comp.lang.ada Message-ID: References: <3EE7CC70.E1FD3A67@adaworks.com> <3EECA772.4B662024@adaworks.com> Mime-version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Date: Wed, 18 Jun 2003 15:39:49 +0100 NNTP-Posting-Host: 80.195.75.181 X-Complaints-To: abuse@blueyonder.co.uk X-Trace: news-binary.blueyonder.co.uk 1055947259 80.195.75.181 (Wed, 18 Jun 2003 14:40:59 GMT) NNTP-Posting-Date: Wed, 18 Jun 2003 14:40:59 GMT Organization: blueyonder (post doesn't reflect views of blueyonder) Xref: archiver1.google.com comp.lang.ada:39394 Date: 2003-06-18T15:39:49+01:00 List-Id: On 18/6/03 08:52, in article slrnbf06g4.qo.randhol+abuse@kiuk0152.chembio.ntnu.no, "Preben Randhol" wrote: >>> 1. [idem[ lets the programmer indicate that the occurrences of the LHS in >>> the are *necessarily* the same, and not contingently so, which makes the >>> code more self-documenting. >> >> (Renaming does not achieve that.) > > Why doesn't it? It is not clear whether the RHS X in X := X + 1; is *essentially* the same as the LHS X, or contingently so. This logical ambiguity is unaffected by whether X is introduced by an object declaration or by a renaming. Idem notation makes the intention crystal-clear. >>> 3. It allows more concisely readable code when the LHS is lengthy. >> >> (Renaming certainly does not achieve that - it requires me to write a block >> to 'simplify' an expression.) > > Currently yes, but it doesn't need to. Could you expand on that? -- Bill-Findlay chez blue-yonder.co.uk ("-" => "")