From: "Volkmann, Mark" Date: 2002-06-08T05:31:53+09:00 Subject: precedence of =, and, or This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_001_01C20E62.08AFAD70 Content-Type: text/plain; charset="iso-8859-1" I'm fairly new to Ruby. I was surprised to read that a = b or c will assign b to a, then perform a logical or of a and c. I expected the precedence of and/or to be higher than = so that it would perform a logical or of b and c, then assign the result to a. Do people like it this way? I'm interested in the rationale behind this decision. *********************************************************************************** WARNING: All e-mail sent to and from this address will be received or otherwise recorded by the A.G. Edwards corporate e-mail system and is subject to archival, monitoring or review by, and/or disclosure to, someone other than the recipient. ************************************************************************************ ------_=_NextPart_001_01C20E62.08AFAD70 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable precedence of =3D, and, or

I'm fairly new to Ruby.
I was surprised to read that
a =3D b or c
will assign b to a, then perform a logical or of a and c= .
I expected the precedence of and/or to be higher than = =3D so that it would perform a logical or of b and c, then assign the resul= t to a.

Do people like it this way?

I'm interested in the rationale behind this decision.



***************************************************************************= ********
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
***************************************************************************= *********
------_=_NextPart_001_01C20E62.08AFAD70--