Once again, to help me become a better CHDK scripter, I would welcome one of the CHDK gurus throwing some light on the use of global vs locally declared variable.
I’m fully aware of the benefit of using locally declared variables, eg in functions or loops etc.
What I’m not so sure about is the potential CHDK advantage of explicitly declaring all variables as local, at a script’s start up, vs using variables as globals, ie ‘declaring’ them as they appear in the script.
I believe there is a speed advantage to using locals, but don’t know if this has real value in my scripts? Plus, there may be other benefits in using locals, eg stability in the script or the CHDK backend.
As I say, I’d welcome some education