# Exportall?

**URL:** <https://discourse.julialang.org/t/exportall/4970>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 20, 2017, 8:52am UTC](https://discourse.julialang.org/t/exportall/4970 "2017-07-20T08:52:27Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [July 21, 2017, 8:59pm UTC](https://discourse.julialang.org/t/exportall/4970/14 "2017-07-21T20:59:30Z")

</div>

The following simple snippet seems to work:

```julia
module Foo
        foo(x) = x+1
        bar(x) = x-1
 
        # exportall:
        for n in names(current_module(), true)
            if Base.isidentifier(n) && n ∉ (Symbol(current_module()), :eval)
                @eval export $n
            end
        end
end

```

---

_[View the full topic](https://discourse.julialang.org/t/exportall/4970)._
