comp.lang.ada
 help / color / mirror / Atom feed
From: "Yannick Duchêne (Hibou57)" <yannick_duchene@yahoo.fr>
Subject: Re: Fun: the Ada assignment operator is an alias of the equivalence operator
Date: Sat, 28 May 2011 11:19:09 +0200
Date: 2011-05-28T11:19:09+02:00	[thread overview]
Message-ID: <op.vv6ph7wtule2fv@douda-yannick> (raw)
In-Reply-To: 1ahuqa8azzgr4.pb0vclmr8vm6.dlg@40tude.net

Le Sat, 28 May 2011 11:03:25 +0200, Dmitry A. Kazakov  
<mailbox@dmitry-kazakov.de> 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 So, what about  
“defined-as the realization-of” ?

> 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) ?


-- 
“Syntactic sugar causes cancer of the semi-colons.”  [Epigrams on  
Programming — Alan J. — P. Yale University]
“Structured Programming supports the law of the excluded muddle.” [Idem]
“c++; /* this makes c bigger but returns the old value */” [Anonymous]



  reply	other threads:[~2011-05-28  9:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-28  0:48 Fun: the Ada assignment operator is an alias of the equivalence operator Yannick Duchêne (Hibou57)
2011-05-28  7:25 ` Dmitry A. Kazakov
2011-05-28  8:02   ` Yannick Duchêne (Hibou57)
2011-05-28  9:03     ` Dmitry A. Kazakov
2011-05-28  9:19       ` Yannick Duchêne (Hibou57) [this message]
2011-05-28  9:58         ` Dmitry A. Kazakov
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox