On 3 Sep 2010 09:51:53 -0700, [email protected] (McKown, John) wrote:
>As shown, nothing because it is invalid syntax. <grin> > >But with parenthesis around the A=B, it means exactly what it says: Assign the >value of B to A, then test to see if it is equal to zero or not. That is where >the semantics of the language come into play. I will agree that it is >counter-intuitive. And it is also why many C compiler will flag that statement >with a warning. And a good IDE will pitch a fit about it. Most languages allow for A = A + 1. Haskell is one based upon math that says that's nonsense. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

