Thank you - I just tested this suggestion.
So far, this works after restarting the REPL. Otherwise, Julia does not recompile and therefore keeps working with an outdated version of D
.
Given the way I use the remote machine, this may be a solution.
I am just not sure yet that recompiling happens every time after restarting the REPL. I have never been able to figure out how to trigger a recompile.