-
-
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
deprecate &x
syntax in ccall, replace with Ref
#6080
Comments
You need to put parens around some operators to use them in prefix form. I forget why this is, but it is the case for some operators and it's not a bug. |
It's surprising that only some of them work without the parens. If it's not a bug, so be it. I'm curious about the reason, though. |
It's because |
You could mandate the parentheses for prefix The |
Now that an alternative is available, we need to decide whether to fully deprecate |
There's still a performance cost to using |
There was a change to use Ref in the LAPACK wrappers and it was way too slow. I believe that performance issue is the blocker from completely removing the use of |
&x
syntax in ccall, replace with Ref
Ah, so here's the issue..... Somehow I couldn't find this when openning the two prs.... |
#22684 has been merged 👍 so the only thing left here is to update base definitions that use |
Yeah, I think so. There was a PR for this, but it may be easier to just do it from scratch. Do you want to tackle this, @musm? If so, that would be great. |
@StefanKarpinski I am working on this |
Deprecation is in for 0.7. For 1.0, we should change the parsing of |
deprecate `&x` in ccall. fixes #6080
Base.(:&)
works as intended.The text was updated successfully, but these errors were encountered: