# What is the bool in a module expr?

**URL:** <https://discourse.julialang.org/t/what-is-the-bool-in-a-module-expr/45079>\
**Category:** General Usage\
**Tags:** question\
**Created:** [August 17, 2020, 6:17am UTC](https://discourse.julialang.org/t/what-is-the-bool-in-a-module-expr/45079 "2020-08-17T06:17:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![schlichtanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/schlichtanders/32/32145_2.png) [@schlichtanders](https://discourse.julialang.org/u/schlichtanders)\
**Post date:** [August 17, 2020, 6:17am UTC](https://discourse.julialang.org/t/what-is-the-bool-in-a-module-expr/45079/1 "2020-08-17T06:17:45Z")

</div>

A module expr contains a Bool as the first arg

```julia
julia> :(module A end).args
3-element Array{Any,1}:
 true
     :A
     quote
    #= none:1 =#
    #= none:1 =#
end

```

What is it for? How would you name it?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [August 17, 2020, 6:31am UTC](https://discourse.julialang.org/t/what-is-the-bool-in-a-module-expr/45079/2 "2020-08-17T06:31:46Z")

</div>

It tells you whether the module was declared with `module` or `baremodule`:

```julia
julia> :(module A end).args
3-element Array{Any,1}:
 true
     :A
     quote
    #= REPL[1]:1 =#
    #= REPL[1]:1 =#
end

julia> :(baremodule A end).args
3-element Array{Any,1}:
 false
      :A
      quote
    #= REPL[2]:1 =#
    #= REPL[2]:1 =#
end

```
