For those who stumble upon this problem and end up at this message in search, I believe I found the essential function signature that needs to be overloaded after studying the code in REPL.jl
Base.writemime(io::IO, ::MIME"text/plain", yt::YourType) which is of course consistent with the manual regarding that matter (section 2.1.18 Multimedia I/O). The only thing I can say in my defence is that the display method structure is rather complex, and that the signature above does not immediately surface as one of the more essential ones for types that do not need a special display. Cheers, ---david On Saturday, October 11, 2014 9:20:34 PM UTC+2, David van Leeuwen wrote: > > Hello, > > I am trying to get my package NamedArrays compatible again with v0.4 and > beyond. I am running into the same problem I seem to be having over and > over again, and that is that > I don't know which function signature I need to overload in order to > display my type in the REPL. In 0.2-0.3 I seemed to have this fixed, by > defining a sequence of show() and print() and display() for NamedArray, but > in the current (2 days old master) julia, none of these get dispatched when > typing the name of a single instance of NamedArray in the REPL. > > It looks like I am getting a default routine from AbstactArray. > > Does anybody know what the default displaying function signature should be? > > Thanks, > > ---david > >
