Sep-30-2019, 03:06 PM
Ichabod: I see your point. In my case I need functionality that I can call upon in several parts of my main script, while at the same time I do not want to expose the internal technical details to the main script. In my latest example, the "global variables" are only visible in the module that contains the functions, not to the main script.
If I would use function-calls and arguments instead, then the arguments that are potentially modified in the functions must be managed in the main script (because if managed in the called fucntions, the modifications disappear at the return). If I would use function calls with arguments, then the arguments must be passed from the main program to the functions and back, so the "global" variables must be managed in the main script, where they make it more difficult to "read and understand" the script.
If I would use function-calls and arguments instead, then the arguments that are potentially modified in the functions must be managed in the main script (because if managed in the called fucntions, the modifications disappear at the return). If I would use function calls with arguments, then the arguments must be passed from the main program to the functions and back, so the "global" variables must be managed in the main script, where they make it more difficult to "read and understand" the script.