# Using export keyword

**URL:** https://discourse.julialang.org/t/using-export-keyword/21723
**Category:** General Usage
**Tags:** question
**Created:** [March 11, 2019, 3:43am UTC](https://discourse.julialang.org/t/using-export-keyword/21723 "2019-03-11T03:43:10Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![yash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yash/32/8353_2.png) [@yash](https://discourse.julialang.org/u/yash)
#### Post date: [March 11, 2019, 3:43am UTC](https://discourse.julialang.org/t/using-export-keyword/21723/1 "2019-03-11T03:43:10Z")

</div>

I am confused for the use of export in modules. In documentation I read that we use export to make functions available to user of that module . But I made a module(say A) ,which contains some functions and used export for some of those functions, in a file(f1.jl) and imported that file to another file(say f2.jl) using _include(“f1.jl”)_ and there I was able to use all the functions by calling with the module _A.functionName_ even if I didn’t use export to that particular function in module A.  
Then what is the use of export??

---

<div class="post-metadata">

### Author: ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)
#### Post date: [March 11, 2019, 4:11am UTC](https://discourse.julialang.org/t/using-export-keyword/21723/2 "2019-03-11T04:11:06Z")

</div>

You should read the `Modules` section of the docs. `using` is for when you don’t want to preface `A.` to every call, and just write `functionName` directly.

iirc Julia doesn’t have a strict notion of private methods, which is important to the extensibility of methods and multiple dispatch.

---

<div class="post-metadata">

### Author: ![yash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yash/32/8353_2.png) [@yash](https://discourse.julialang.org/u/yash)
#### Post date: [March 11, 2019, 4:41am UTC](https://discourse.julialang.org/t/using-export-keyword/21723/3 "2019-03-11T04:41:34Z")

</div>

How to I use **using** in this case?? I tried it after using **include** and it threw an ArguementError: Package A not found in current path.

---

<div class="post-metadata">

### Author: ![greg\_plowman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/greg_plowman/32/8100_2.png) [@greg\_plowman](https://discourse.julialang.org/u/greg_plowman)
#### Post date: [March 11, 2019, 4:51am UTC](https://discourse.julialang.org/t/using-export-keyword/21723/4 "2019-03-11T04:51:50Z")

</div>

Try `using .A`

[https://docs.julialang.org/en/v1/manual/modules/#Relative-and-absolute-module-paths-1](https://docs.julialang.org/en/v1/manual/modules/#Relative-and-absolute-module-paths-1)

---

<div class="post-metadata">

### Author: ![yash](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yash/32/8353_2.png) [@yash](https://discourse.julialang.org/u/yash)
#### Post date: [March 11, 2019, 5:00am UTC](https://discourse.julialang.org/t/using-export-keyword/21723/5 "2019-03-11T05:00:49Z")

</div>

Thanks @greg_plowman it worked.😀
