Suppose you define a new composite type in Julia and a variable of that type:
type MyType
α::Int64
β::Vector{Float64}
γ::Float64
MyType(α::Int64, β::Vec
You should define one of the following (they will both work and have the same effect):
function Base.show(io::IO, me::MyType)
println(io, "MyType")
println(io, "α:$(me.α), β:$(me.β), γ:$(me.γ)")
end
function Base.writemime(io::IO, ::MIME"text/plain", me::MyType)
println(io, "MyType")
println(io, "α:$(me.α), β:$(me.β), γ:$(me.γ)")
end