Autoreload.jl icon indicating copy to clipboard operation
Autoreload.jl copied to clipboard

Silence unnecessary warnings about reloading constants

Open malmaud opened this issue 12 years ago • 3 comments

malmaud avatar Dec 21 '13 15:12 malmaud

This might require a change in Julia base itself. Overwriting Base.warn inside the package doesn't seem effective at silencing warnings issues from other functions in Base.

malmaud avatar Dec 21 '13 15:12 malmaud

One kind of warning (new definition ... is ambiguous with ...) is caused by code like

function a()... function b()...

then when its reloaded, the redefinition of a() is ambiguous with the now-loaded definition of b().

malmaud avatar Dec 21 '13 20:12 malmaud

Another kind issues a warning about redefining a type. This is mostly caused by modules importing a functionfrom base and defining a new method on it.

malmaud avatar Dec 21 '13 22:12 malmaud