[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re-requiring modules
- From: Robert Virding <robert.virding@...>
- Date: Tue, 22 Oct 2013 17:37:42 +0200 (CEST)
Is it possible to re-require a module? The documentation implies that it is not possible as if the module has been loaded then it will be remembered in the package.loaded table and the next time is it loaded then this value will be reused.
The scenario I was thinking about is a long-lived application where you need to upgrade a module but don't want to take down the system as you will have a lot state which needs to be maintained.
It would also be interesting to speculate how to handle multiple versions of a module in the same system. In one sense it would be easy if they were kept in different places but overwriting an existing one may be tricky.
Robert