Prad wrote:
> Often programs will have memory leaks, so if they are run over long
> times then it's necessary to restart them sometimes. With a reset()
> function, they could effectively restart themselves by freeing their
> memory without needing to be closed and reopened.
A memory leak constitutes a program error. Programs without such
errors don't need any of the remedies you're suggesting.
--
Morris Dovey
DeSoto Solar
DeSoto, Iowa USA
http://www.iedu.com/DeSoto