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-Thread: a07f3367d7,dbbbb21ed7f581b X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "(see below)" Newsgroups: comp.lang.ada Subject: Re: Operation can be dispatching in only one type Date: Mon, 30 Nov 2009 23:54:09 +0000 Message-ID: References: <025105f2-5571-400e-a66f-ef1c3dc9ef32@g27g2000yqn.googlegroups.com> <1h9hilcg5i6il.12edpgu4szw1h.dlg@40tude.net> <1wtsriaxu0s4s$.ikwnnz5teukp$.dlg@40tude.net> <18wh86jvjvoe0.cofxcc8udm6q$.dlg@40tude.net> <53a35ed9-88ac-43dc-b2a2-8d6880802328@j19g2000yqk.googlegroups.com> <4b091fb9$0$6567$9b4e6d93@newsspool4.arcor-online.net> <1w0q3zxzw79pt$.5z0juiky7kfd$.dlg@40tude.net> <0f177771-381e-493b-92bb-28419dfbe4e6@k19g2000yqc.googlegroups.com> <1nbcfi99y0fkg.1h5ox2lj73okx$.dlg@40tude.net> <59acf311-3a4a-4eda-95a3-22272842305e@m16g2000yqc.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Trace: individual.net f3Tno+56MiUfiseCT+ts8QLmtiKwU+OK1fs70my8xKMMn7onUh Cancel-Lock: sha1:TSM8CvEhzjC5g9HxqtazBxSynoQ= User-Agent: Microsoft-Entourage/12.20.0.090605 Thread-Topic: Operation can be dispatching in only one type Thread-Index: AcpyGGhpk0smq4MB6EKZivMR6n7GEA== Xref: g2news1.google.com comp.lang.ada:8258 Date: 2009-11-30T23:54:09+00:00 List-Id: On 30/11/2009 20:36, in article wcc8wdn697e.fsf@shell01.TheWorld.com, "Robert A Duff" wrote: > stefan-lucks@see-the.signature writes: >> Distinguishing the two different operations which are written as ":=" in >> Ada by using different words and even different symbols would make a lot of >> sense. > I definitely want to use different symbols as well as different words. > But I'm not sure what symbols to choose. Maybe := and :== . > > I want to allow: > > X : Integer; > > if ... then > X := 0; -- initialize (what I want to call "assign") > else > X := 1; -- initialize (what I want to call "assign") > end if; > > while ... loop > X :== X + 1; -- overwriting (what I want to call "reassign") > ... > end loop; What is wrong with the terms "initialize" and "assign", respectively? X : Integer initially if ... then 0 else 1 end if; Y : Integer constant if ... then 1 else 2 end if; while ... loop X := X + Y; -- assign ... end loop; -- Bill Findlay chez blueyonder.co.uk