Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Funny, not so
Message
De
14/10/2010 03:55:20
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
13/10/2010 10:19:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01485207
Message ID:
01485425
Vues:
112
>>VFP has no '--' operator. It's valid arithmetic expression and result is correct.
>>
>>>* typo 3 => bad result (better a syntax error !)
>>>? 10--2
>
>I was not referring to the result, or '--' operator, but the syntax.
>
>It is a valid arithmetic expression?
>Depends on how you interpret the signs.
>
>I would prefer if every '--'.'-+','+-','++' I would return a syntax error.

Your preferences versus a century or two of consensus on mathematical syntax. Try this in other languages - a minus (and in some cases, plus) between any other operator and an expression means just that the sign of the expression is inverted (or isn't).

This has never been wrong. It's just that people aren't used to it, because they let their maths rust. Now you do the psychology.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform