Sure. Here's how I remind myself how to do this:

julia> using Grid

julia> @edit show(STDOUT, InterpGrid)
# OK, I see that it prints InterpGrid.name

julia> @which show(STDOUT, InterpGrid.name)
show(io::IO,tn::TypeName) at show.jl:107
# Aha!

julia> print(STDOUT, InterpGrid.name.name)
InterpGrid

--Tim

On Sunday, January 04, 2015 03:36:35 PM Tomas Lycken wrote:
> Display of types seems to have changed recently:
> 
> 
> module Foo
> export Bar
> type Bar end
> end
> 
> using Foo
> println(Bar)
> 
> prints "Foo.Bar" although I'm quite sure that until recently it only
> printed "Bar". I'm sure there are lots of scenarios where this is very
> useful (error reporting, for example), but I have a use case where it's
> not. Is there any way to print the *unqualified* type name?
> 
> // Tomas

Reply via email to