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

GlobalInstance should expose MutabilityType instead of HostGlobal #488

Merged
merged 2 commits into from
Aug 27, 2024

Conversation

evacchi
Copy link
Collaborator

@evacchi evacchi commented Aug 27, 2024

Move the MutabilityType field from HostGlobal to GlobalInstance. Notice that GlobalInstance has both getters and setters, we might want to revisit that.

Adjust tests accordingly.

Move the MutabilityType field from HostGlobal to GlobalInstance.
Notice that GlobalInstance has both getters and setters, we
might want to revisit that.

Adjust tests accordingly.

Signed-off-by: Edoardo Vacchi <[email protected]>
@evacchi evacchi requested a review from andreaTP August 27, 2024 08:12
Copy link
Collaborator

@andreaTP andreaTP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are going in a direction of making, as much as possible, classes immutable.
From the diff setMutabilityType is not used, I would remove it and make the field final, other than that, LGTM, thanks for the improvement!

Signed-off-by: Edoardo Vacchi <[email protected]>
Copy link
Collaborator

@andreaTP andreaTP left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the cleanup!

@andreaTP andreaTP merged commit 3162a71 into dylibso:main Aug 27, 2024
13 checks passed
@evacchi evacchi deleted the global-instance-mutabilitytype branch August 27, 2024 14:21
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.

2 participants