What is the bool in a module expr?

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

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
2 Likes