Implicitly loaded modules in the future?

Oh yeah, that one was patched out of the language to be illegal. But on refs it still works:

x = Ref(2)
module A
   Main.x[] = 1
end
using .A
@show x

This is actually a nice way to debug FWIW, because you can grab pieces of a big function to play with later. Then of course you can do this with arrays, files, etc.

4 Likes