Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Best approach about #DEFINE constants
Message
De
15/05/2008 21:29:34
 
 
À
14/05/2008 20:14:55
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01316940
Message ID:
01317524
Vues:
11
As I like to say problems occur when "variables don't (vary) and constants that aren't (constant)". Declaring constants as PUBLIC variables is a case of "constants that aren't" -- that is they are susceptible to change when logically they shouldn't. The other problem is when you try to pass these "constants" as parameters -- the variable gets hidden within the called context, so some of your constants could "unexpectedly disappear."
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform