You need to override Base.show(io::IO, foo:T) show()’s definition provides the basis for most other printing methods.
— John On Jan 25, 2014, at 3:22 AM, Shoibal Chakravarty <shoib...@gmail.com> wrote: > Suppose I define a composite type T. > > type T > xx::Int > yy::Int > end > > julia>T > (xx,yy) > > I want to change what the repl prints when I do T[enter] on the command line. > Which function should I change to to do this (the equivalent of T.__repr__() > in Python). > > Thanks, > Shoibal. > >