Feb-08-2020, 05:52 AM
Quote:In regard to globals are almost never necessary, is it the same reason as other languages such as C and C++?I was a 'C' (and sometimes C++) programmer for 30 years.
I don't think I ever used a Global during that time.
If you have teaching material and their showing this (globals) as valid code, find some other material!
If there just showing how it's done, and recommending against it, that's OK.