# Is "include" safe to use inside a function?

**URL:** <https://discourse.julialang.org/t/is-include-safe-to-use-inside-a-function/10867>\
**Category:** General Usage\
**Created:** [May 13, 2018, 7:24am UTC](https://discourse.julialang.org/t/is-include-safe-to-use-inside-a-function/10867 "2018-05-13T07:24:18Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Ralph\_Smith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ralph_smith/32/10344_2.png) [@Ralph\_Smith](https://discourse.julialang.org/u/Ralph_Smith)\
**Post date:** [May 14, 2018, 1:46am UTC](https://discourse.julialang.org/t/is-include-safe-to-use-inside-a-function/10867/11 "2018-05-14T01:46:23Z")

</div>

> [@yuyichao](#):
>
> They will almost never be freed though

Does this mean that objects whose only bindings are at global scope in a given module are not garbage-collected even if the module itself is “replaced” by a new module with the same name?

---

_[View the full topic](https://discourse.julialang.org/t/is-include-safe-to-use-inside-a-function/10867)._
