JuliaLang/julia — Issue #265: precompiled function references
Author: vtjnash
Created: 2011-11-26 04:33:07+00:00
State: open

if I define a function d2 before a function d1 which calls d2 then change d2, d1 uses the old definition for d2.
I assume this is because it is all precompiled, but maybe there should be a note warning of this? Or would it be possible to replace the old definition with a longjmp to the new one?
(Mostly important for the REPL, since I don't always do a full load)

julia> function d2()
a
end

julia> function d()
d2()
end

julia> d()
in d: a not defined

julia> function d2()
b=2
end

julia> d()
in d: a not defined

julia> d2
Methods for generic function d2
d2() at prompt:2

julia> function d()
d2()
end

julia> d()
2