>>In fortran the exponent operator is right associative
>>
>>2 ^ 3 ^ 2 = 2 ^ (3^2) = 2 ^ 9
>>
>>
>>
>>In C#, assignment operators, unary operators and the conditional operator are Right associative
>>(I have posted this before
http://msdn.microsoft.com/en-us/library/aa691323(VS.71).aspx )
>>
>>int x = 0;
>>int y = -~x ;// 1
>>int z = ~-x; // -1
>>
>
>exponent has priority in all computer languages and all computer languages are based on left-to-right. They teached us that at university (I graduaded computer programming not an another division )...
The left or the right one in
2 ^ 3 ^ 2 = 2 ^ (3^2) = 2 ^ 9
?
And they don't teach us left to right. They teached us to read the language - definition carefully.
Agnes
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord
Weeks of programming can save you hours of planning.
OffThere is no place like [::1]