Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why the compiler not see this syntax error ?
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00882763
Message ID:
00882783
Views:
14
>This ( and others ) bad code is compiled, but not running.
>IF m.AAA OR  + M.BBB
>ENDIF
>VFP9 rumors they say that it will have a syntactic analysis line by line;
> we hope that this type of errors comes recognized.

That's legacy behavior: in early versions of xBase languages, you could have a comment at the end of an IF statement without a comment marker. So, the above is syntactically equivalent to:
IF m.AAA && OR  + M.BBB
ENDIF
I agree that it would be just as well to remove this bit of behavior, though.
My blog
My consulting page
My home page

Member of the Trim Your Auto-Quote Campaign!
What's another word for thesaurus?
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform