in reply to Maintaining state in modules
I'd make the location and/or filename more explicit to the module user, and the filename at least in one constant somewhere so it can be changed trivially if needed.
In fact, isolating the save/restore logic is a good idea in general, so the whole thing could be replaced without affecting the rest of the module.
|
---|