File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 9
9
` ClobberingReload.creload(modulename) ` is a drop-in replacement for
10
10
` reload(modulename) ` , that does not require rebuilding the state after ` reload ` ,
11
11
because the reloaded module's new functions are applicable to the existing
12
- objects. It is ideally suited for exploratory REPL-heavy workflows, and also
13
- works with modules imported via ` using ` (so no need for prefixing every function
14
- call with its module name)
12
+ objects. It is ideally suited for exploratory REPL-heavy workflows.
15
13
16
14
Additionally, ` ClobberingReload ` provides functionality for automatically
17
15
reloading modified modules. It is a direct successor to ** @malmaud ** 's
@@ -33,7 +31,7 @@ and please report any issues you encounter.
33
31
34
32
``` julia
35
33
using ClobberingReload
36
- using Houses
34
+ using Houses # unlike with `reload`, `using` modules is fine
37
35
38
36
h = House (nwindows= 10 )
39
37
println (" Price of house:$(price (h)) " )
@@ -43,7 +41,7 @@ println("Price of house:$(price(h))")
43
41
44
42
creload (" Houses" )
45
43
46
- println (" Price of house:$(price (h)) " )
44
+ println (" Price of house:$(price (h)) " ) # no need to redefine h
47
45
> Price of house: 130
48
46
```
49
47
You can’t perform that action at this time.
0 commit comments