Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
#DEFINE - Why?
Message
 
À
30/03/2008 21:37:22
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01306848
Message ID:
01307031
Vues:
8
>>>What is the simplest explanation as to why these are needed? Why not just set regular variable values? So what if they are constant and don't change?
>>
>>In addition to Hilmar's reply - all define variables would be substituted with their values in compilation time, e.g. the code would actually read 5 instead of SOMENUMBER every time where SOMENUMBER is used.
>
>But, from a practical standpoint, does that really matter? I haven't heard anything yet that is convincing that these are really needed or make much of a difference.

It matters in that one way uses memory to store variables at runtime and the other doesn't.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform