-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
包管理机制 #5
Comments
现在Prajna的Module管理是这样的, 比如"::gpu::Thread", ::表示从根符号表开始开始查找, 后面就是各个子模块的名字. 需要充分借鉴一下Rust, Julia和C++的module(package)管理机制. 目前先不用过多关注发布和版本的管理. |
/// Cargo uniquely identifies packages using [ |
用路径做模块(module)名是没有问题的,可以用as关键字为模块起别名避免冲突。编译器本身可以只管在指定路径下能否查找到模块。 错误排查可以考虑参照Rust,将完整的模块名抛出。 依赖及其路径应该由包管理器管理,包管理器为编译器提供包的路径,解决包名冲突和包之间的依赖关系。 关于包管理: nimble 是nim-lang的包管理器,相对于其他包管理器,它的实现相对简洁。 |
现在错误是全名了, 清晰了点 |
目前的包管理基本没有实现. 包管理会是一个多阶段的工作.
The text was updated successfully, but these errors were encountered: