Quantcast
Channel: First steps - JuliaLang
Viewing all articles
Browse latest Browse all 2795

Export functions included from different modules with the same name

$
0
0

Here is my example:

module AB

using Reexport

include("A.jl")
include("B.jl")

@reexport using .A
@reexport using .B


end

And, both A, B has functions close!. Then, using close! causes warning like this:
WARNING: both A and B export "close!"; uses of it in module AB must be qualified
(Of course, both A.close! and B.close! accept different types of arguments).

Is there something I missed?

5 posts - 3 participants

Read full topic


Viewing all articles
Browse latest Browse all 2795

Trending Articles