logo
  • 教程列表
  • SO官方文档
  • 导入和模块
    • 全局导入
    • 选择性导入
    • 本地导入
    • 公共导入
    • 重命名为导入
    • 重命名和选择性导入
    • 模块声明
  1. StackOverflow 文档
  2. D Language 教程
  3. 导入和模块
  4. 公共导入

公共导入

Created: November-22, 2018

模块可以通过 public imports 暴露给其他模块。

public import std.math;
// only exports the symbol 'pow'
public import std.math : pow;
  • 重命名为导入
  • 本地导入

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明