-
-
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
Add cfunction tuple of types deprecation #23066
Conversation
base/deprecated.jl
Outdated
@@ -1601,6 +1601,11 @@ end | |||
# issue #6466 | |||
# `write` on non-isbits arrays is deprecated in io.jl. | |||
|
|||
function cfunction(f, r, a::Tuple) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could be simplified to
@deprecate cfunction(f, r, a::Tuple) cfunction(f, r, Tuple{a...})
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, however I think the resulting deprecation warning message is not as helpful/clear in this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WARNING: cfunction(f, r, a::Tuple) is deprecated, use cfunction(f, r, Tuple{a...}) instead.
looks as helpful to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, let the deprecate macro do what it's there for
Did you lose the NEWS commit? I removed the label cause I saw you added that but now its not here? |
hmm that is super strange...I will add it back. |
Added back. |
ah wondered what happened there |
Github's rebase tools is strange. I had to rebase this twice, with the exact same changes to make it work..... |
base/deprecated.jl
Outdated
@@ -1595,6 +1595,12 @@ end | |||
# issue #6466 | |||
# `write` on non-isbits arrays is deprecated in io.jl. | |||
|
|||
# PR #23066 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
trailing white space
Unrelated Example install failures on appveyor and strange (unrelated) timeouts on travis |
Failure is definitely related:
|
:-o I should add the embedding testing to freebsd ci. |
@fredrikekre good catch fixed! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unrelated download failure on linux32, timeout (all tests were done though) on linux64, so lgtm - should definitely be squashed
merge ? |
148f997
to
7f68846
Compare
squashed and rebased |
is this good to go now? |
The docs need updating? https://docs.julialang.org/en/latest/manual/calling-c-and-fortran-code/#Creating-C-Compatible-Julia-Function-Pointers-1 E.g |
docs updated |
thanks @KristofferC |
close #23020