Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is ASSERT used for?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00141677
Message ID:
00141728
Vues:
33
Mark..

Assertions are for developers only. What good does it do for an end-user to see a dialog that displays as a result of a failed assertion. Craig is 100% correct here in that when distributing your application - Set Assert should be off.


>>When you distribute your application, you can SET ASSERT OFF and the assert will be ignored.
>
>However, I've heard good arguments for why ASSERT should never be turned off (or, rather, that it should be replaced with real error-handling code). Turning ASSERTs off is like saying your app can't possibly contain the bugs the assertions are supposed to trap. I know I can't say this with absolute certainty about my code.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform