Skip to content

Conversation

boriel
Copy link
Collaborator

@boriel boriel commented Sep 27, 2025

What / Why

Now it's possible to do:

DIM a(2) As Ubyte

SUB Incr(ByRef x As Ubyte)
  LET x = x + 1
END SUB

Incr(a(2))

So it's possible to pass single array elements as ByRef params whose value can be changed.

@boriel boriel merged commit ee76467 into main Sep 28, 2025
1 check passed
@boriel boriel deleted the bug/cannot_use_array_element_by_ref branch September 28, 2025 10:03
@boriel
Copy link
Collaborator Author

boriel commented Sep 28, 2025

Fixes #994

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.

1 participant