Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Constants vs Locals
Message
 
To
28/09/1999 10:52:14
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00269906
Message ID:
00269970
Views:
24
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform