So I have code of the form:

type Foo
x::Int
end

Base.show(io::IO, foo::Foo) = print("Foo:\n x = $(foo.x)")

This works fine for a single instance of Foo, but when I have an array of 
Foo objects the display for the array in the REPL calls Base.show() 
multiple times on each element and doesn't call newline after each.  I 
tried putting io as the first argument to print but that didn't do 
anything, I also tried customizing Base.showarray but that didn't do 
anything either.  How do I fix this?

Reply via email to