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

Array functionality unimplemented in move #20

Open
egroge opened this issue Sep 9, 2020 · 0 comments
Open

Array functionality unimplemented in move #20

egroge opened this issue Sep 9, 2020 · 0 comments
Labels
bug Something isn't working good first issue This should be a good place to get stuck in for beginners move ir Code generation for Libra urgent High priority and should be fixed ahead of other tasks

Comments

@egroge
Copy link
Collaborator

egroge commented Sep 9, 2020

The libra target has support for storing arrays as libra vectors but not accessing them or storing to them. Full functionality was implemented previously, but this was before libra updated to have generic vector data types. Array values should now be accessed using the Vector.borrow() and Vector.borrow_mut() methods, depending on whether the value should be mutated or not, as shown in this example from the Libra testsuite.

@egroge egroge added bug Something isn't working move ir Code generation for Libra urgent High priority and should be fixed ahead of other tasks good first issue This should be a good place to get stuck in for beginners labels Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue This should be a good place to get stuck in for beginners move ir Code generation for Libra urgent High priority and should be fixed ahead of other tasks
Projects
None yet
Development

No branches or pull requests

1 participant