Including modules in Julia v0.7

Previously packages were stored in Main and as a side effect modules defined in Main could be loaded as if they were packages. That is no longer the case: packages are not stored in Main and you cannot load modules defined in Main that way. In 0.7 import X can only be used to load actual packages (via LOAD_PATH etc. as described in code loading). Now if you want to load a module defined in Main from Main you have to load it with import .X; to load it from a submodule of Main you have to do import ..X.

10 Likes