[julia-users] Developping and debugging a module

2014-10-10 Thread Toivo Henningsson
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).


[julia-users] Developping and debugging a module

2014-10-10 Thread Ján Dolinský
Hello,

I am developing a module. I load it using "using module". Then I call a 
function from the module to test it out. If I get an error I fix it in 
module.jl but Julia is still using the older unfixed version of the module. 
Running "using module" again does not help so I have to quit Julia and 
start over to reflect the changes.

I guess there is a smarter way ? :). Thanks in advance.

Jan