导出 Julia 中的所有符号 [英] Exporting all symbols in Julia

查看:15
本文介绍了导出 Julia 中的所有符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法导出 Julia 模块中的所有符号(类似于 importall 的语义对应物)?当要导出的符号数量增加时,这样的功能将非常有用.TIA.

Is there a way to export all symbols in a Julia module (something like the semantic counterpart to importall)? Such a functionality would be very useful when the number of symbols to be exported grows large. TIA.

推荐答案

这里有 Reexport.jl 提供这种形式的包;它的用例是当您有一个子模块并且想要将所有导出的符号从内部模块重新导出到当前模块中时.我知道,不是exportall,而是部分功能.

There's the Reexport.jl package that provides a form of this; it's use case is when you have a submodule and you want to reexport all of the exported symbols from the inner module into your current module. I know, not exportall, but part of the functionality.

这篇关于导出 Julia 中的所有符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆