Skip to content
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

Pass scalar by values for user functions #2098

Merged
merged 1 commit into from
Apr 27, 2023
Merged

Conversation

serge-sans-paille
Copy link
Owner

passing scalar by ref (through universal reference) leads to worst code, so avoid the situation when we can.

Passing scalar by ref (through universal reference) leads to worst
code, so avoid the situation when we can.
@serge-sans-paille
Copy link
Owner Author

@jeanlaroche following up on your comments in #2095 on that PR : yeah I do plan to merge this one, but it's the most ground-breaking one, so let's dive into your issues, would you be able to share the whole error log and/or a minimal reproducer?

@jeanlaroche
Copy link
Contributor

jeanlaroche commented Apr 14, 2023 via email

@jeanlaroche
Copy link
Contributor

jeanlaroche commented Apr 14, 2023 via email

@serge-sans-paille
Copy link
Owner Author

@jeanlaroche could you share the original python code?

@jeanlaroche
Copy link
Contributor

OK I took a closer look at the code. The issue is that the calling convention used by pythran has changed with this PR so I needed to update some patches accordingly. Once I do that the compilation error disappears.

@serge-sans-paille
Copy link
Owner Author

@jeanlaroche can I take this as a green light to merge this PR?

@jeanlaroche
Copy link
Contributor

yes!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants