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-Thread: 103376,fe928bde93f0c2f4 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news1.google.com!news.glorb.com!selfless.tophat.at!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Fun: the Ada assignment operator is an alias of the equivalence operator Date: Sat, 28 May 2011 11:19:09 +0200 Organization: Ada @ Home Message-ID: References: <1ahuqa8azzgr4.pb0vclmr8vm6.dlg@40tude.net> NNTP-Posting-Host: 98Z2l/wGp5yoVSFMgm2+VQ.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.01 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Xref: g2news1.google.com comp.lang.ada:19531 Date: 2011-05-28T11:19:09+02:00 List-Id: Le Sat, 28 May 2011 11:03:25 +0200, Dmitry A. Kazakov = a =C3=A9crit: > I think it is a widely shared misconception that immutability has = > anything > to do with that. [Functional is not an answer, whatever the question w= as > (:-))] > > No, even an initialized constant is not necessarily equivalent to its > initializing expression. Obvious examples: > > I : constant Integer :=3D Get (File); > X : constant Float :=3D Random (Dice); > T : constant Time :=3D Clock; Right Er Professor, sure ":=3D" does not introduce a macro :p So, what a= bout = =E2=80=9Cdefined-as the realization-of=E2=80=9D ? > 2. Program equivalence. You can say that two programs are equivalent i= n > some [limited] sense, e.g. when the compiler optimizes the code, or wh= en > you modify the program. Equivalent by realization (modulus some canonicalization of the output) = ? -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [Ep= igrams on = Programming =E2=80=94 Alan J. =E2=80=94 P. Yale University] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [Idem] =E2=80=9Cc++; /* this makes c bigger but returns the old value */=E2=80=9D= [Anonymous]