comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: Fun: the Ada assignment operator is an alias of the equivalence operator
Date: Sat, 28 May 2011 09:25:40 +0200
Date: 2011-05-28T09:25:39+02:00	[thread overview]
Message-ID: <mo17glnzuctx$.2pvurnwy3w7c$.dlg@40tude.net> (raw)
In-Reply-To: op.vv51u3xqule2fv@douda-yannick

On Sat, 28 May 2011 02:48:29 +0200, Yannick Duchêne (Hibou57) wrote:

> A very light topic: I've just discovered the Ada / Pascal assignment  
> operator, is one of the alias of the logical-equivalence or defined-as  
> operator, that is, “ := ” is an alias of “ ≡ ”.

I didn't see that usage of ":=" ("Defined-as" is not same "equivalent").

For "defined-as" I saw "=" with a small triangle or word "def" under it. In
grammar definitions "::=" or "->".

≡ is indeed used as equivalent/tautological.

> This is a rather good choice which was made… would have been a perfect  
> choice is this was not used for side effects (let say this is just the  
> interpretation context which slightly vary :-D ).

Assignment is not a logical operation, variables are not logical
predicates. Even

   A := B;
   Post (A = B); -- Not necessarily true.

(A variable is a mapping of the program state onto the domain values set.
Assignment merely denotes a state transition.)

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  reply	other threads:[~2011-05-28  7:25 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 [this message]
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)
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