Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Constants vs Locals
Message
De
28/09/1999 10:52:14
Walter Meester
HoogkarspelPays-Bas
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00269906
Message ID:
00269935
Vues:
23
Bruce,

>Is there any reason to use a #DEFINEd constant instead of a local var? I've seen it done, but am not aware if the rationale, particularly when trying to debug...

You talk about #DEFINE used in ordinary code ? so not about headerfiles are you ?

IMHO you only use locals when they can change during runtime. If they don't you can:

- use hardcoded values
- use #DEFINE if this value applies to more than one instance in code, so maintainability is increased.

Walter,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform