logo
  • 教程列表
  • SO官方文檔
  • 匯入和模組
    • 全域性匯入
    • 選擇性匯入
    • 本地匯入
    • 公共匯入
    • 重新命名為匯入
    • 重新命名和選擇性匯入
    • 模組宣告
  1. StackOverflow 文件
  2. D Language 教程
  3. 匯入和模組
  4. 選擇性匯入

選擇性匯入

Created: November-22, 2018

選擇性匯入可以幫助清理名稱空間並加快編譯時間,因為編譯器只需要解析特定的選定函式。

import std.stdio: writeln;
void main()
{
    writeln("Hello world");
}
  • 本地匯入
  • 全域性匯入

Copyright © 2018. All right reserved

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

  • 關於本站
  • 免責聲明