Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preprocesor bug
Message
From
21/05/2006 13:46:39
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01123796
Message ID:
01123832
Views:
14
>Run this example:
>
>#define INP
>#define REF
>#define OUT
>
>? INP REF OUT && Variable 'REF' is not found.
>? INP REF     && Variable 'REF' is not found.
>? INP
>
>? INP OUT REF && Variable 'OUT' is not found.
>? INP OUT     && Variable 'OUT' is not found.
>
>
>
>Why preprocesor ignoring each second constant at compiling?
>
>MartinJ

Because it is a bug.
If a constant is empty ( empty is a valid constant !),
and the following one is separate from a separator of word (space,tab)
the preprocessor doesn't see the following constant.
CLEAR
CLEAR
#define isempty1
#define isempty2
#define isempty3
#define isempty4
#define isnotempty1	1
#define isnotempty2	2

? [isempty1 isempty2 isempty3 isnotempty1 isnotempty2 isempty4]
? [isempty1.isempty2.isempty3.isnotempty1.isnotempty2.isempty4]
Previous
Reply
Map
View

Click here to load this message in the networking platform