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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Fun: the Ada assignment operator is an alias of the equivalence operator Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1ahuqa8azzgr4.pb0vclmr8vm6.dlg@40tude.net> Date: Sat, 28 May 2011 11:58:17 +0200 Message-ID: <8ok2pytkbemj$.sueohx59cmzv$.dlg@40tude.net> NNTP-Posting-Date: 28 May 2011 11:58:16 CEST NNTP-Posting-Host: baebcabc.newsspool1.arcor-online.net X-Trace: DXC=[U>i:d]lf`7gP]QSEBQ^d4ic==]BZ:af>4Fo<]lROoR1<`=YMgDjhg2BP^Z71AoN3?[6LHn;2LCV>[ On Sat, 28 May 2011 11:19:09 +0200, Yannick Duchêne (Hibou57) wrote: > Le Sat, 28 May 2011 11:03:25 +0200, Dmitry A. Kazakov > a écrit: >> I think it is a widely shared misconception that immutability has >> anything >> to do with that. [Functional is not an answer, whatever the question was >> (:-))] >> >> No, even an initialized constant is not necessarily equivalent to its >> initializing expression. Obvious examples: >> >> I : constant Integer := Get (File); >> X : constant Float := Random (Dice); >> T : constant Time := Clock; > > Right Er Professor, sure ":=" does not introduce a macro :p "Lazy" would be a better word than "macro". > So, what about > “defined-as the realization-of” ? Well, declaration of an immutable variable defines it in a scope. The point is that realization, which looks like just another word for "value", cannot define [immutable] variable. A variable can be defined *to have* some value, but variable is not a value. Value is a "meaning" of a variable in some context. In mathematics both sides of "defined-as" are same sort of beasts. BTW, just for fun: Huh : constant Boolean := Halt (P); -- Is Huh defined? (:-)) >> 2. Program equivalence. You can say that two programs are equivalent in >> some [limited] sense, e.g. when the compiler optimizes the code, or when >> you modify the program. > Equivalent by realization (modulus some canonicalization of the output) ? Indistinguishable by certain means, e.g. within some formal model, like black box etc. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de