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

rune: Store Object in AnyObj instead of Mutable (relates #844) #873

Merged
merged 1 commit into from
Nov 1, 2024

Conversation

udoprog
Copy link
Collaborator

@udoprog udoprog commented Nov 1, 2024

Since Object is separated from Struct, this also implements the long-standing change of storing field names separately from the structs themselves. So structs always just stores its struct data as an array.

Note that the field names are needed for dynamic field access methods. Since Rune is dynamic and untyped, we do not know which fields are available at compile-time.

@udoprog udoprog added the enhancement New feature or request label Nov 1, 2024
@udoprog udoprog merged commit e4543bf into main Nov 1, 2024
24 checks passed
@udoprog udoprog deleted the object-any-obj branch November 1, 2024 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant