-
Notifications
You must be signed in to change notification settings - Fork 373
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
[GnoVM] - Cannot use pointer of an array as parameters of len & cap function #2707
Labels
🐞 bug
Something isn't working
Comments
Currently, the https://github.com/gnolang/gno/blob/master/gnovm/pkg/gnolang/values.go#L2123-L2156 |
7 tasks
thehowl
added a commit
that referenced
this issue
Sep 13, 2024
# Description closes #2707 The `GetLength()`, `GetCapacity()` method in `TypedValue` has been updated to handle pointer type. <details><summary>Contributors' checklist...</summary> - [x] Added new tests, or not needed, or not feasible - [ ] Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory - [ ] Updated the official documentation or not needed - [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message was included in the description - [x] Added references to related issues and PRs - [ ] Provided any useful hints for running manual tests - [ ] Added new benchmarks to [generated graphs](https://gnoland.github.io/benchmarks), if any. More info [here](https://github.com/gnolang/gno/blob/master/.benchmarks/README.md). </details> --------- Co-authored-by: Morgan Bazalgette <[email protected]>
Linear re-opened this, but it's incorrect. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cannot use pointer of an array as parameters of len & cap function
Description
While I was working on implementing a value check for constants following this documentation, I realized that this code, which works in Go 1.17, doesn't work in Gno.
Now, I don't know if this is intentional behavior, but if it is, I'd be delighted to have the justification and i will close the issue then. If not, it might be worth fixing to improve Go to Gno process.
Trace
Your environment
P.S: I also think it's a first good issue and i will see to fix it after i finish with const verification if no one fixed it before.
The text was updated successfully, but these errors were encountered: