Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Public Variables or Object Properties
Message
From
01/06/2001 12:28:14
David Fluker
NGIT - Centers For Disease Control
Decatur, Georgia, United States
 
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Miscellaneous
Thread ID:
00510878
Message ID:
00513898
Views:
18
>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).

So, Jim...
Don't hold back, tell us what you really think of PUBLIC vars ;-)
David.
Previous
Reply
Map
View

Click here to load this message in the networking platform