This should do the trick:

Foo.name.primary

(I think this defeats type inference, so try not to use it in
performance critical code)

On Mon, 2016-01-04 at 11:31, Sheehan Olver <[email protected]> wrote:
> If I have a type
>
> ```julia
> immutable Foo{D}
>  x::D
> end
>
> f=Foo(5)
> ```
>
>
> then `typeof(f)` gives me `Foo{Int}`.  Is it possible to get access to just
> `Foo`?  I.e., I want to do:
>
> ```
>     F=droptemplates(typeof(f))  # returns pointer to Foo
>     F(1.0)
> ```

Reply via email to