If you include() the source file for the module, it will be replaced. Then you 
just have to make sure that you don't have any references to stuff in the old 
module that stick around. If you always reference things in the module via dot 
notation you should be fine. Another way, which I usually use, is to create a 
module for my test code as well, which I reload via include() after reloading 
the module (or that reloads the module before using it).

Reply via email to