How to know how an object is displayed?


#1

I’m familiarizing myself with a package written by others. What I’m curious to know is how an object is printed at the console when I type this object’s name at REPL. I think the authors of the package overrode the default way of displaying and redefined it somewhere in the package. But I couldn’t locate the overridden display function as I don’t know the keywords by searching which I can find the redefinition.

In Matlab, such a customized display is achieved by overridden function of disp. I wonder the keyword in Julia. Could anyone leave me a hint? Thanks!!


#2

See http://docs.julialang.org/en/latest/manual/types.html#Custom-pretty-printing-1


#3

Thanks a lot for the pointer.