Is there a way to update a single function in a module after it has been 
defined/closed? Trying:

julia> module M
         f(x) = x
         g(x) = 2*x
       end
julia> M.f(1)
1
julia> M.g(1)
2
julia> module M
       f(x) = x+1
       end
Warning: replacing module M
julia> M.f(1)
2
julia> M.g(1)
ERROR: g not defined

Is there some way I can update only M.f without touching M.g? I realize it 
may not be idiomatic or might even be frowned upon but I have a use case 
were I'd rather not mess around with someone else's large module but still 
need to patch/change one func in it...

Thanks in advance for any insights,

Robert

Reply via email to