You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The default MIME type is MIME"text/plain". There is a fallback definition for text/plain output that calls show with 2 arguments. Therefore, this case should be handled by defining a 2-argument show(stream::IO, x::MyType) method.
However, if MyType subtypes AbstractArray and you define the 2-argument version of show, julia ends up calling this 3-arg definition for AbstractArray instead of your version.
Would it cause problems if the AbstractArray definition used the 2-argument version?
The text was updated successfully, but these errors were encountered:
The latest docs for
show
and friends say:However, if
MyType
subtypesAbstractArray
and you define the 2-argument version ofshow
, julia ends up calling this 3-arg definition forAbstractArray
instead of your version.Would it cause problems if the
AbstractArray
definition used the 2-argument version?The text was updated successfully, but these errors were encountered: