I have a package that I wrote which is part of the Julia package registry that I would like to extend in a nonstandard way. It’s organized in the same spirit as
Optim.jl in the sense that there are a much of different solver methods that the user can invoke, and it makes use of multiple dispatch to use them smoothly.
For a particular problem I’m working on, I need a custom solver which is not part of the existing package, and it is far too specialized to merit including in it. I was hoping to be able to do something like:
using MyPackage include("custom_method1.jl")
and then be able to use all of the interfaces associated with
MyPackage but with my custom solver. However, this generates a type error, presumably because
MyPackage wasn’t built with the
custom_method1.jl file as part of its source.
Other than just forking the package, is there a way to get Julia to support such an extension?