代码之家  ›  专栏  ›  技术社区  ›  Mei Zhang

在utop中使用完全限定名

  •  1
  • Mei Zhang  · 技术社区  · 7 年前

    我想在包含以下内容的目录中启动utop a.ml (其中对 something )并且能够进入 A.something 在乌托普。我知道我能行 #use "a.ml" 什么 在utop工作?

    1 回复  |  直到 7 年前
        1
  •  3
  •   glennsl Namudon'tdie    7 年前

    #help :

    #mod_use <str>
      Usage is identical to #use but #mod_use wraps the contents in a module.
    

    #mod_use "a.ml"