"Local" and "Local Static" Variables
Posted: Tue Sep 16, 2003 9:13 am
Here's a tip: If you are starting a project that is likely to grow to any reasonable size, group all your global variables into one (or several) global *structure* variables. The disadvantage of adding "myvar\..." all over the place is far outweighed by avoiding having to hunt down bugs because you forget you are already using a global variable elsewhere. Which leads to my request: PB would be more managable if in procedures it supported true "Local" variables which do not effect any global use of same named variables. Add a "static" option to preserve values between calls and now you don't even have to worry about clashing with global variables.
@Fred: I'm sure you know exactly what I am requesting without all the above. The description is for the benefit of others who may not have come across these options in other languages.
@Fred: I'm sure you know exactly what I am requesting without all the above. The description is for the benefit of others who may not have come across these options in other languages.