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

Passing arrays by value does not work. #118

Open
mkilgore opened this issue Jun 17, 2022 · 0 comments
Open

Passing arrays by value does not work. #118

mkilgore opened this issue Jun 17, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@mkilgore
Copy link
Contributor

Arrays can be passed by value by wrapping them in parenthesis when calling a function. Unfortunately it doesn't work correctly, for the most part it produces code that doesn't compile.

Functionally, the goal here is that the contents of the array are copied before the array is passed. How the copy happens depends on what kind of array it is - for most arrays the backing buffer can just be copied directly, for variable length strings the qbs objects need to be copied individually.

@mkilgore mkilgore added the bug Something isn't working label Jun 17, 2022
@mkilgore mkilgore added this to Backlog in Backlog/In Progress Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

1 participant