Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Public Variables or Object Properties
Message
De
01/06/2001 09:14:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00510878
Message ID:
00513713
Vues:
18
JimB,


>Kev,
>
>PUBLIC variables are the bane of existance. These little beasts will crash your code in ways that make it virtually impossible to debug. They are like an infection that spreads throughout everything that runs, sometimes harmless and sometimes disasterous. These viruses should be erradicated at all cost. Treat them like HIV and kill every one you see. Find some other way to do what you need to do and NEVER use a PUBLIC variable. Be asure to always declare your variables as private or local so that anyone else's publics can't creep into your running code and hurt you (software condoms).

I dunno.. That sounds pretty wishy-washy...

*gd&rvvvf*


How the heck are you doing? Haven't seen much of you lately. I've been swamped as usual. <g>
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform