Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why define constants
Message
From
25/10/2006 11:45:47
Alexandre Palma
Harms Software, Inc.
Alverca, Portugal
 
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01164235
Message ID:
01164429
Views:
10
>>The point I tried to make is that a variable will do as well, and in my opinion even better, if it is a text/value that is used only in one place. The example Jim Nelson reflected upon is a clear example of a text that is used in one routine rather than in many. If that text would occur in many routines, then the developer should reconsider the modularity of his code, rather than the variables-versus-constants debate.
>
>You're not nit-picking over the choice of message example, are you. That's not the point; it just happened to be the first example to come to my head, rather than spend half an hour thinking up a "real-life" example.

Exaclty but this can go on and on since everyone is entitle to his opinion, The only thing I can say is that the #DEFINE values get replaced at build time that's why everytime u change a h file it will go and rebuild all the classes in the project when you build the app.
Alexandre Palma
Senior Application Architect
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform