-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
some deprecated methods in the wrong module #23146
Comments
Possibly related? julia> module A
"""
doc
"""
f() = 1
export f
end
A
julia> using A
help?> f
search: f fd for fma fld fft full fld1 find filt fill fft! fdio frexp foldr foldl flush floor float first findn filt! fill! fetch FFTW fldmod findnz findin filter falses finally foreach flipdim fldmod1
doc
help?> A.f
ERROR: UndefVarError: A not defined Also, |
Implementing more of #10940 might be the way to go here. Basically, I think the most intuitive thing is to leave raw symbols alone as much as possible. If you put Of course that means when a macro calls another macro, it can see |
similar to other issues mentioned in #23146
similar to other issues mentioned in #23146
E.g. the vectorized method of
acos_fast
is in Base instead of FastMath. Caused by 7ec9b18. cc @vtjnashI believe this is because in
since
f
refers to a raw symbol, the$f
is now looked up in the definition environment of the macro, which is Base. I tried to fix it by adding backf = esc(f)
, but the@deprecate
macro doesn't like that. I usually end up with:or
I suspect both are due to not allowing multiple levels of
esc
wrapping.The text was updated successfully, but these errors were encountered: