# The best practice to share data among different derived types?

**URL:** <https://fortran-lang.discourse.group/t/the-best-practice-to-share-data-among-different-derived-types/8862>\
**Category:** Uncategorized\
**Created:** [November 21, 2024, 1:41am UTC](https://fortran-lang.discourse.group/t/the-best-practice-to-share-data-among-different-derived-types/8862 "2024-11-21T01:41:56Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![hkvzjal](https://yyz2.discourse-cdn.com/free1/user_avatar/fortran-lang.discourse.group/hkvzjal/32/3055_2.png) [@hkvzjal](https://fortran-lang.discourse.group/u/hkvzjal)\
**Post date:** [November 21, 2024, 2:13am UTC](https://fortran-lang.discourse.group/t/the-best-practice-to-share-data-among-different-derived-types/8862/4 "2024-11-21T02:13:30Z")

</div>

Maybe this thread can be of interest to you

> [@Ownership for Fortran pointers](https://fortran-lang.discourse.group/t/ownership-for-fortran-pointers/8084):
>
> For quite a long time I’ve being thinking if there could be a way of making usage of pointer a bit safer in Fortran. They offer many advantages but can be tricky if one is not careful about memory management. I have found very useful to define DTs with pointer components which can actually hold the data or simply point to external data and encapsulate processing procedures around the given DT. In order to have the flexibility of using the same DT as owner or pointer of the data I’ve used the fo…

---

_[View the full topic](https://fortran-lang.discourse.group/t/the-best-practice-to-share-data-among-different-derived-types/8862)._
