# How to arrange a package with submodules and multiple files?

**URL:** <https://discourse.julialang.org/t/how-to-arrange-a-package-with-submodules-and-multiple-files/21709>\
**Category:** General Usage\
**Tags:** question\
**Created:** [March 10, 2019, 4:48pm UTC](https://discourse.julialang.org/t/how-to-arrange-a-package-with-submodules-and-multiple-files/21709 "2019-03-10T16:48:49Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![rdeits](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rdeits/32/286_2.png) [@rdeits](https://discourse.julialang.org/u/rdeits)\
**Post date:** [March 12, 2019, 10:17pm UTC](https://discourse.julialang.org/t/how-to-arrange-a-package-with-submodules-and-multiple-files/21709/7 "2019-03-12T22:17:29Z")

</div>

> [@congvan](#):
>
> Including C.jl two times is not only noisy, but may also cause confusion or bad error, for example, if C.jl has type “TestType”, and one includes “C.jl” in “M1.jl” and “M2.jl” then “TestType” is not unique in “M1.jl” and “M2.jl” and we have two different “TestType”.

For an example of exactly the kind of problem that @congvan is correctly pointing out, see this recent post: [I'm confused with types names](https://discourse.julialang.org/t/im-confused-with-types-names/21795) . Including a file multiple times will result in different types with the same name and is likely to create all kinds of confusion.

---

_[View the full topic](https://discourse.julialang.org/t/how-to-arrange-a-package-with-submodules-and-multiple-files/21709)._
