-
-
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
Function must be explicitly imported to be extended #9547
Comments
The error seems to have gone away. I have no idea how that happened. |
Are you expecting an error to be raised or not? |
There should be an error. |
My commit a3d637f is at fault. |
Also, to clarify, you can define a new function with the same name as one in Base, but not when that name from Base has already been used to refer to the Base function. |
That makes a lot of sense. And calling |
It's not the call to |
Thanks for the clarification Jeff. |
A discussion over at Docile.jl exposed the following behavior with Julia 0.3 and certain builds of Julia 0.4:
while other builds of Julia 0.4 give:
It seems like one should be able to define a function with the same name as a function in
Base
, but which isn't mean to extend it. Or is this behavior intentional somehow?The text was updated successfully, but these errors were encountered: