Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AND and OR evaluations in conditional statements
Message
 
 
À
13/04/1999 10:51:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00206066
Message ID:
00208050
Vues:
29
Bill,

Yes, VFP as it parses the logical expression understands the overall structure of operators (NOTs, ANDs and ORs) and operands (memvars, fields, object properties and function calls). Expressions like these are typically put into a binary tree for evaluation, the optimizer can eliminate whole subtrees quite easily if it knows they can't affect the overall value of the expression.

>Agreed with your statement. However what Jim said about VFP having to evaluate the operator type ( i.e. AND, OR, etc. ) is required to determine whether the expression result must be evaluated, correct?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform