Skip to content

Use an outparameter to return values from closures #22

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

Merged
merged 5 commits into from
Sep 24, 2017
Merged

Conversation

mystor
Copy link
Owner

@mystor mystor commented Sep 24, 2017

This should fix #20 and #18, at a small perf impact for cases where values can be returned in registers. It also has the benefit over #18 (comment) that the C++ move constructor is used to construct the resulting value into rust code. This makes more values safe to return into rust, although manipulating the values in rust code may still break things.

@mystor mystor changed the title Use an outparmeter to return values from closures Use an outparameter to return values from closures Sep 24, 2017
@mystor mystor merged commit 7bd105f into master Sep 24, 2017
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.

Segfault when adding destructor to class
1 participant