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 read-only arrays #61127

Merged
merged 1 commit into from
May 17, 2022
Merged

Conversation

vnen
Copy link
Member

@vnen vnen commented May 17, 2022

Arrays can be set as read-only and thus cannot be modified. Assigning the array will create an editable copy.

Similar to is already done to read-only dictionaries (see #61087).

Proper support in GDScript will be added in a future PR.

Arrays can be set as read-only and thus cannot be modified. Assigning
the array will create an editable copy.

Similar to is already done to read-only dictionaries.
@vnen vnen added this to the 4.0 milestone May 17, 2022
@vnen vnen requested a review from a team as a code owner May 17, 2022 17:17
@akien-mga akien-mga merged commit f87e5c4 into godotengine:master May 17, 2022
@akien-mga
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants