Inspect a Julia source code from an other Julia code

I think @gdalle has a good point.

Just to clarify what’s going on though: this is a “world-age issue” which (to my understanding) happens when you define a function that should live in the scope of Main, but you defined it within another function. When you now try to call the newly defined function before you are back to Mains scope, you get a world-age error.

There is some more detailed discussion here and a StackOverflow answer here which shows the behavior of include.

1 Like