# Question on use of include from 0.6 -- 1.0

**URL:** <https://discourse.julialang.org/t/question-on-use-of-include-from-0-6-1-0/15248>\
**Category:** New to Julia\
**Created:** [September 20, 2018, 6:58pm UTC](https://discourse.julialang.org/t/question-on-use-of-include-from-0-6-1-0/15248 "2018-09-20T18:58:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![threadedblue](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/threadedblue/32/19247_2.png) [@threadedblue](https://discourse.julialang.org/u/threadedblue)\
**Post date:** [September 20, 2018, 6:58pm UTC](https://discourse.julialang.org/t/question-on-use-of-include-from-0-6-1-0/15248/1 "2018-09-20T18:58:28Z")

</div>

All,  
Firstly, thanks in advance.

My question is why the error (see below) and what to do about it?  
It would appear something has changed between versions.  
I have some third party code that runs well in version 0.6 but throws errors in 1.0.

In a file: XYZ.jl we declare a module.

Then from julia we say,  
julia\> using XYZ

In 1.0, Julia complains: ERROR: LoadError: UndefVarError: include not defined

```julia
# The module in question
module XYZ
...no problems here...
end
# Then we have a series of include statements.  
# Notice the include statement comes after the module declaration has ended.
# These includes run properly in 0.6 but throw the 
# aforementioned error when run in 1.0
include("abc.jl")
include("def.jl")
... more includes...

```

Thanks again

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [September 21, 2018, 5:37am UTC](https://discourse.julialang.org/t/question-on-use-of-include-from-0-6-1-0/15248/2 "2018-09-21T05:37:19Z")

</div>

please provide a **self-contained** example

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …
