May 2019
Beginner to intermediate
466 pages
10h 44m
English
Manipulating the LOAD_PATH works great when developing standalone apps, like the one we're working on now. However, this approach is not available for a package developer. For such instances—and for all the cases when for one reason or another using the LOAD_PATH is not an option—a common way of loading modules is by including their files.
For example, we can include our Letters module at the REPL, as follows (start a new REPL session):
julia> include("modules/Letters.jl")
Main.Letters
This will read and evaluate the contents of the modules/Letters.jl file in the current scope. And as a result, it will define the Letters module within our current module, Main. But, this is not enough—at this point, none of the ...
Read now
Unlock full access