Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why the compiler not see this syntax error ?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00882763
Message ID:
00882783
Vues:
16
>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?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform