This code modifies the global value m and r for example. My first intuition is to simply redefine a constructor function via include:
function make_instance()
m = 3
r = exp(m/600)
return(data_type_A([...]))
end
Then you simply include the file to redefine the constructor, and call make_instance()
include("thefile.jl")
inst = make_instance()