import Base.show

function Base.show(io::IO, m::MyType)
  print(io, "This is MyType")
end


Am Montag, 9. Februar 2015 12:04:51 UTC+1 schrieb Evan Pu:
>
> I have a type with a lot of fields, but when I want to print it I only 
> want to output the name field of that type.
> So when I print an array of objects of this type, I get a on the prinout 
> an array of names instead of a huge clutter of prints.
>
> how might I do that?
> much thanks!!
>

Reply via email to