Hello, 

ClobberingReload 
<https://github.com/cstjean/ClobberingReload.jl>.creload("ModuleName") 
is an alternative to reload("ModuleName") for interactive development. 
Instead of creating a new module object, it evaluates the modified code 
inside the existing module object, clobbering the existing definitions. 
This means that:

using ClobberingReload
import M

x = M.Cat(4)

...

creload("M")

M.chase(x)  # no need to reinitialize x

Unlike reload(), it works fine with `using`

using ClobberingReload
using M

x = Cat(4)

...

creload("M")

chase(x) 

ClobberingReload also works as a drop-in replacement for *@malmaud*'s great 
Autoreload.jl <https://github.com/malmaud/Autoreload.jl> package. See this 
section <https://github.com/cstjean/ClobberingReload.jl#autoreload>.

The package has not been tested as extensively as I would have liked before 
release, but it's rather simple code, and with 0.5 releasing today and 
Autoreload being mostly unmaintained 
<https://groups.google.com/d/msg/julia-users/8eHcaNkiHnc/r61FMk0WBgAJ>, 
hopefully this can help some 0.5 users. Please file an issue should you 
encounter a problem.

Install it with

Pkg.clone("git://github.com/cstjean/ClobberingReload.jl.git")


Best,

Cédric

Reply via email to