Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro compiler error
Message
De
06/02/2013 16:38:05
 
 
À
06/02/2013 16:18:09
Information générale
Forum:
Visual FoxPro
Catégorie:
Problèmes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Divers
Thread ID:
01565298
Message ID:
01565347
Vues:
51
>You said: The syntax of the source code line was the issue. Not what
> it evaluated to at runtime. Using the explicit syntax:

>
>I disagree. What you are saying is that if I wanted to use macro substitution
>in that line, I would get an error, and that I would be prevented from compiling my
>EXE because of that error.

I think what it's revealing is that whenever the VFP compiler finds an ampersand, it encodes the instruction as is regardless of any requirements of syntax. This allows it to be evaluated at runtime to determine if it is valid.

Inside a quoted character string like this, I'm not sure it's such a good idea. At the very least a warning should be generated. :-)

>I think this is being handled correctly. It is in fact impossible to know that
>that line of code has a problem, just as for this simple line:
>
foo = (&a
Yup. Whenever there's an ampersand, the sky's the limit.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform