【发布时间】:2020-04-25 16:33:47
【问题描述】:
对于同一个函数名,我有多个函数/调度。我想确保它们都被导出。我是否只需要在导出语句中包含函数的名称,然后让 Julia 完成剩下的工作?
例子:
function hello(a::Int64, b::Int64)
#nothing
end
function hello(a::Bool, b::Bool)
#nothing
end
export hello
这两个都可以通过export hello 导出吗?
【问题讨论】:
标签: julia