Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Constants vs Locals
Message
 
À
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:
00269970
Vues:
23
>You talk about #DEFINE used in ordinary code ? so not about headerfiles are you

Yes, ordinary...

>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.

I'm thinking mainly of constants for things like SYS() calls. The constant is supposed to be faster, but is not available debugging, either.
The Anonymous Bureaucrat,
and frankly, quite content not to be
a member of either major US political party.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform