How would you would handle resetting variables without VarStructor?
By refactoring the code for sanity.
Only a big ball of mud has so many globals that resetting them manually is an error-prone task. And that's just a corollary of the fact that everything in such a codebase is an error-prone task.
Makeshifts last the longest.
|