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

Implement in, out and inout parameter passing modes #17

Open
c3d opened this issue Feb 7, 2020 · 0 comments
Open

Implement in, out and inout parameter passing modes #17

c3d opened this issue Feb 7, 2020 · 0 comments

Comments

@c3d
Copy link
Owner

c3d commented Feb 7, 2020

The in T type optimises type T for passing as an input parameter.
The out T type optimises type T for passing as an output parameter.
The inout T type (or io T optimises type T for passing as an input/output parameter.

This relies on binding binding rules, and selecting passing by copy or by reference depending on what is more efficient.

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

No branches or pull requests

1 participant