JuliaLang/julia

relative using/import should search current directory

Open

#4,600 opened on 2013年10月21日

GitHub で見る
 (175 comments) (27 reactions) (1 assignee)Julia (48,709 stars) (5,773 forks)batch import
designhelp wantedmodules

説明

When I do

# Main.jl
module Main
  using .Foo
end

and there's a file called Foo.jl in the same directory as Main.jl it should be loaded. I suspect that relative using should also not look in the global require places – i.e. Pkg.dir() and then LOAD_PATH. The same applies to import.

コントリビューターガイド