# Need to include one file multiple times, how to avoid warning

**URL:** https://discourse.julialang.org/t/need-to-include-one-file-multiple-times-how-to-avoid-warning/27439
**Category:** General Usage
**Tags:** question
**Created:** [August 12, 2019, 1:55am UTC](https://discourse.julialang.org/t/need-to-include-one-file-multiple-times-how-to-avoid-warning/27439 "2019-08-12T01:55:44Z")
**Posts on this page:** 1
**Showing post:** 13

<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: [August 12, 2019, 1:05pm UTC](https://discourse.julialang.org/t/need-to-include-one-file-multiple-times-how-to-avoid-warning/27439/13 "2019-08-12T13:05:22Z")

</div>

> [@hendri54](#):
>
> I don’t see anything wrong with including a simple file that just contains some constants multiple times. Am I missing any issues this could generate?

It’s definitely not recommended in Julia. Any types or functions defined in that file will be defined _twice_, and those two definitions will be completely different, despite having the same name. This can lead to confusing situations. For some examples of real-world problems caused by multiple includes, see:

- [Trouble importing a module that depends on another globally imported module](https://discourse.julialang.org/t/trouble-importing-a-module-that-depends-on-another-globally-imported-module/26482)
- [Local Modules with Conflicting Names and Module Management](https://discourse.julialang.org/t/local-modules-with-conflicting-names-and-module-management/26942)

---

_[View the full topic](https://discourse.julialang.org/t/need-to-include-one-file-multiple-times-how-to-avoid-warning/27439)._
