Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro compiler error
Message
De
06/02/2013 16:09:19
 
 
À
06/02/2013 15:39:02
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:
01565342
Vues:
52
>>>>>>The compiler can't catch them all.
>>>>With scripts - like FoxPro's execscript - I don't see how the compiler
>>>>can catch it - until executed. It is up to the developer to write and
>>>>test the script with the help of the compiler.
>>>
>>>EXECSCRIPT() has no chance of catching it. But the ones like my example are raw source code syntax errors. Those should be caught.
>>
>>They likely didn't pursue it too rigorously since it would depend on the result at runtime.
>>
>>missed1 = "this and &that"
>>
>>that = "o'"
>>
>>result is "this and o'". Which is fine.
>>
>>that = 'o"'
>>
>>result is "this and o""
>>
>>That last could only crash at runtime (like execscript) or with some major smarts in the IDE/Compiler.
>
>And here's an example where at compile time it looks like it should generate an error, though at runtime it is OK:
that = '"'
x = "this&that
Think that's what you meant :) Nice example BTW.
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform