Skip to content

Conversation

@sprunk
Copy link
Collaborator

@sprunk sprunk commented Dec 27, 2025

  • remove .res1 and .res2. Operator[] exists for future arbitrary resources, and legacy code uses .metal and .energy.
  • make sure operator[] is actually used for indexed access. Ideally the underlying array would be made private, but this can't be done while keeping metal and energy public since they're an union.

 * remove `.res1` and `.res2`. Operator[] exists for future arbitrary
   resources, and legacy code uses `.metal` and `.energy`.

 * make sure operator[] is actually used for indexed access. Ideally
   the underlying array would be made private, but this can't be done
   while keeping `metal` and `energy` public since they're an union.
@sprunk sprunk marked this pull request as ready for review December 27, 2025 07:30
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