-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding methods to eval
or include
throws in v1.12
#57070
Comments
This is certainly due to #55949. Unlike |
🤔 so technically #55949 was a breaking change then, since it has now essentially made This is maybe okay, but it's a breaking change. Eval, in particular, could be a useful name for packages like solvers? |
Not true, it's still possible to define a new function named julia> baremodule M
function eval end
function include end
end
Main.M |
Yes, the change was intentional
And this was basically one of the primary reasons. It was unclear what the scope of such overloads is and in fact it changed several times over different Julia versions. This has now been cleaned up. |
...if the function name isn't fully qualified or explicity imported
e.g.
Note the error message is different from trying to extend other methods without qualification e.g.
Whereas in v1.11
Was this a deliberate change?
It broke some of our code that happened to use the name
eval
(not meaning to extendBase.eval
), so wanted to check the new behaviour was intendedThe text was updated successfully, but these errors were encountered: