Thanks, I learned something today ![]()
Tell me more about these goofball variables, they sound hilarious ![]()
Thanks, I learned something today ![]()
Tell me more about these goofball variables, they sound hilarious ![]()
While we are at it, I refreshed my memory (for all the good that will do) and can add that a global variable is visible in the source file only after the point where it is declared, even in the Arduino IDE environment.
Without static, any global variable can be seen by another source file in the program if that file adds the extern qualifier. That can't override static, but inadvertently leaving off static in the first source file might be a mistake.
goofball was the spell checker, but I wondered briefly if it was an editorial comment. There are reasons to minimise the use of global variables...
a7
I once sent my boss a text message saying "I'm in the hotel lobby waiting for penis".
It was supposed to be "Puneet", a colleague visiting UK from India.