Hey guys,
Just a quick question in relation to sub procedures to the program I'm creating which I'm trying to use as less memory as possible - Do sub procedures work just like local variables in the aspect that all within the sub procedure is destroyed after it is exited and the memory is available again?
I'm thinking of slapping the code together and just not worrying about it, but it may be tedious to other programmers who may need to update it, but I just wanted to make my program as less resource hungry as possible.
Or am I looking into this way too much, and it doesn't make a difference if i slap the code in one block without any sub procedures compared to if i do?
I would of just thought when you built the program, all the sub procedures would have to be initialised and retained in memory, unlike the local variables.
Just a quick question in relation to sub procedures to the program I'm creating which I'm trying to use as less memory as possible - Do sub procedures work just like local variables in the aspect that all within the sub procedure is destroyed after it is exited and the memory is available again?
I'm thinking of slapping the code together and just not worrying about it, but it may be tedious to other programmers who may need to update it, but I just wanted to make my program as less resource hungry as possible.
Or am I looking into this way too much, and it doesn't make a difference if i slap the code in one block without any sub procedures compared to if i do?
I would of just thought when you built the program, all the sub procedures would have to be initialised and retained in memory, unlike the local variables.