Do the overload with IO before trying to print. The printing causes code gen, which effectively caches the implementation at that point. See https://github.com/JuliaLang/julia/issues/265.
On Fri, May 6, 2016 at 2:05 PM, Ford Ox <[email protected]> wrote: > > > Dne pátek 6. května 2016 18:51:49 UTC+2 Steven G. Johnson napsal(a): >> >> You have to overload the show method that takes an io argument, like I >> said. >> > > I have overloarded both - without IO and with IO > show(io::IO, f::Foo) = print(io, "f") > > check the julia console screenshow again, its on 6th line >
