Odin icon indicating copy to clipboard operation
Odin copied to clipboard

[BREAKING CHANGE] Subtyping based `runtime.Type_Info`

Open gingerBill opened this issue 8 months ago • 0 comments

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

gingerBill avatar Mar 06 '25 09:03 gingerBill