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-16 10:17:02 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!newsfeed.stueberl.de!newsfeed.vmunix.org!uio.no!193.75.75.20.MISMATCH!news.eunet.no!Norway.EU.net!newsfeed1.e.nsc.no!nsc.no!nextra.com!news4.e.nsc.no.POSTED!53ab2750!not-for-mail From: "Tarjei T. Jensen" Newsgroups: comp.lang.ada References: <3EE7CC70.E1FD3A67@adaworks.com> <3EECA772.4B662024@adaworks.com> Subject: Re: Ideas for Ada 200X MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 130.67.235.109 X-Complaints-To: news-abuse@telenor.net NNTP-Posting-Date: Mon, 16 Jun 2003 19:17:01 MEST X-Trace: news4.ulv.nextra.no 1055783821 130.67.235.109 Date: Mon, 16 Jun 2003 19:16:52 +0200 Xref: archiver1.google.com comp.lang.ada:39261 Date: 2003-06-16T19:16:52+02:00 List-Id: Richard Riehle wrote: > If we adopt this syntax, in Ada, we will need to include some rules in the > language to enable the compiler to discern a clear difference between > the += and :=. That is, in Ada's current model, we want to compiler to > be able to tell us when a construct is a mistake or warn us when it will > potentially create an incorrect execution. How would you think about i := () +1; Feel free to replace () with {} or []. Or perhaps use (.), {.} or [.]. An advantage would be that you could re-use the value several times. e.g. i := () + () / 100; greetings,