@xiaodai wrote:
I am defining
size
in my moduleJDF
, but I only want it to ever be called usingJDF.size
. Can I do that?module JDF using Base:size JDF.size(df, val) = JDF.size(df, Val(val)) JDF.size(df, ::Val{1}) = 1 JDF.size(df, ::Val{2}) = 2 end
Now
@which size("abc", 1)
shows the location in my JDF, even though I didn’t
export
it.Is there a way to do it so that
JDF.size
needs to be called andsize
ignores the function defined in the module JDF?
Posts: 5
Participants: 2