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

[BREAKING CHANGE] Subtyping based runtime.Type_Info #4913

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

gingerBill
Copy link
Member

Convert the usage of runtime.Type_Info from being a union of the variants in-place to based on subtypes in order to minimize memory usage and initialization.

This is a BREAKING CHANGE for any code base that uses runtime type information.

How to fix your code:

  • case runtime.Type_Info_* -> case ^runtime.Type_Info_*
  • x.(runtime.Type_Info_*) -> x.(^runtime.Type_Info_*)
  • info_for_struct.flags -> info_for_struct.struct_flags

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.

1 participant