# Deparametrising types

**URL:** https://discourse.julialang.org/t/deparametrising-types/41939
**Category:** General Usage
**Tags:** question, parametric-types
**Created:** [June 23, 2020, 2:36pm UTC](https://discourse.julialang.org/t/deparametrising-types/41939 "2020-06-23T14:36:35Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![mauro3](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mauro3/32/292_2.png) [@mauro3](https://discourse.julialang.org/u/mauro3)
#### Post date: [June 23, 2020, 3:00pm UTC](https://discourse.julialang.org/t/deparametrising-types/41939/2 "2020-06-23T15:00:40Z")

</div>

Adapting this one:

> [@Get new type with different parameter](https://discourse.julialang.org/t/get-new-type-with-different-parameter/37253/5):
>
> Have a read through: [https://docs.julialang.org/en/v1/manual/methods/#Extracting-the-type-parameter-from-a-super-type-1](https://docs.julialang.org/en/v1/manual/methods/#Extracting-the-type-parameter-from-a-super-type-1) The thing is, that parameters might change place, or don’t exist (see the BitVector example). Thus, it is generally not a good idea to do this. If you still want to do it, you probably want a generated function: julia\> @generated function newT(::Type{T}, ::Type{TT}) where {T,TT} getfield(parentmodule(T), nameof(T)){TT} end newT (generic function with 2 me…

?

---

_[View the full topic](https://discourse.julialang.org/t/deparametrising-types/41939)._
