Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Math Formula
Message
De
15/12/2008 08:40:58
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
15/12/2008 08:32:58
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
Information générale
Forum:
Politics
Catégorie:
Autre
Titre:
Divers
Thread ID:
01366554
Message ID:
01367392
Vues:
9
>>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.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform