Reexport.jl icon indicating copy to clipboard operation
Reexport.jl copied to clipboard

How to not reexport a symbol?

Open WuSiren opened this issue 1 year ago • 0 comments

module Y
export f, g
    f(x) = x + 1
    g(x) = x + 2
end

module X
export h
    using Reexport
    @reexport using ..Y: f
    h(x) = f(x) + 3
    # Place-1: let `f` available here.
end

using ..X
# Place-2: let `g` available and `f` not available here.

If I want to let f available at Place-1 and let g available and f not available at Place-2, how should I code?

Thanks in advance!

WuSiren avatar Apr 03 '24 14:04 WuSiren