Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Preprocesor bug
Message
 
To
21/05/2006 05:42:04
Neil Mc Donald
Cencom Systems P/L
The Sun, Australia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
Miscellaneous
Thread ID:
01123796
Message ID:
01123801
Views:
24
No...
This source code save as xparam3.prg and recompile it. Look to err file.
#define INP 
#define REF 
#define OUT 
#define CHNG 

PROCEDURE test(INP REF OUT CHNG luPar1, REF luPar2)
Result:
PROCEDURE test( REF  CHNG luPar1,  luPar2)
Error in line 7: Syntax error.
Why don't replace constants REF and CHNG? But constants INP and OUT are replaced.

MartinJ

>Are they keywords or system variables.?
>
>>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
"Navision is evil that needs to be erazed... to the ground"

Jabber: gorila@dione.zcu.cz
Jabber? Jabbim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform