Currently all of my files in my project look something like this:
module ConstraintSetMod
using ..DatasetMod
export ConstraintSet, ...
struct ConstraintSet
... fields ...
end
... functions ...
end
And I have a file called include.jl
that looks like this:
# Include all files
include("types.jl")
include("dataset.jl")
include("constraint_set.jl")
include("cluster_set.jl")
carefully arranged in the right order such that each file depends only on files that come before it in this list.
It really seems like I’m doing something wrong here, but I have spent a lot of time looking for alternatives without finding anything that looked reasonable. How does the module system actually work?
9 posts - 5 participants