Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
#DEFINE question
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00502085
Message ID:
00502139
Views:
21
>Just thought of something else. This is a good thing that this is a literal substitution because what if #DEFINE CRLF CHR(10) + CHR(13) was actually an EVAL() type replacement at compile time? That would be a real mess!

My personal take is (and has been) to assign things like this to a variable (especially if there's an iteration structure involved) and go from there. Otherwise, each time the constant is referenced, the functions are evaluated. By assigning a variable, the functions are called only once.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform