try Foo.name (without the '.primary'), and as Mauro says (try not to use it 
much)


On Monday, January 4, 2016 at 5:39:53 AM UTC-5, Mauro wrote:
>
> 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] 
> <javascript:>> 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