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

Add support for assignment ops on class properties and dynamic array or queue elements #1199

Merged
merged 4 commits into from
Jan 6, 2025

Conversation

larsclausen
Copy link
Collaborator

Add support for assignment operators on class properties and dynamic array or queue elements. With a little bit of refactoring most of the code can be shared with the existing assignment operator support for scalars and arrays.

@larsclausen larsclausen force-pushed the assignment-op branch 4 times, most recently from 3b1f505 to 0e915c9 Compare January 4, 2025 19:48
Currently assignment operators on object properties are silently
ignored. Make sure that they are handled.

To enable this refactor the code a bit so that the assignment
operator handling can be shared between object property assignments
and scalar value assignments.

Signed-off-by: Lars-Peter Clausen <[email protected]>
…ments

Currently assignment operators on queues and dynamic elements trigger an
assert.

Add support for handling this properly. Since the operation for loading an
element for an queue or dynamic array is identical most of the code can be
shared, only writing back the value has to be handled separately.

Signed-off-by: Lars-Peter Clausen <[email protected]>
Check that assignment operators are supported for class properties.

Signed-off-by: Lars-Peter Clausen <[email protected]>
…ments

Check that assignment operators work as expected on queue and dynamic array
elements.

Signed-off-by: Lars-Peter Clausen <[email protected]>
@larsclausen larsclausen merged commit b794b9c into steveicarus:master Jan 6, 2025
5 checks passed
@larsclausen larsclausen deleted the assignment-op branch January 6, 2025 00:53
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