01-03-2025, 05:55 PM
I love shared variables, especially in the middle of a large project when I know I will be wasting a lot of time passing new variables to various subroutines.
I do have some large programs that have all shared variables, and no variables passed. They all work just fine.
Yes, for the sake of a library, it is a neater job to not used shared variables, but it is only a bulletproof measure if the programs or other libraries you add to it never contain shared variables with the same names.
So it's a matter of choice, and I love BASIC for being a language that offers up so many choices over other languages, even though this is not one of those instances.
Pete
I do have some large programs that have all shared variables, and no variables passed. They all work just fine.
Yes, for the sake of a library, it is a neater job to not used shared variables, but it is only a bulletproof measure if the programs or other libraries you add to it never contain shared variables with the same names.
So it's a matter of choice, and I love BASIC for being a language that offers up so many choices over other languages, even though this is not one of those instances.
Pete