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

Specify compile-time evaluation of field and index accesses #1329

Closed
wants to merge 2 commits into from

Conversation

jaehyun1ee
Copy link
Contributor

This adds to the list of (local) compile-time known values in section 18.1. (#1323)

In summary, for index access,

  • e1[e2] is local compile-time known if both e1 and e2 are local compile-time known.
  • e1[e2] is compile-time known if both e1 and e2 are compile-time known.
  • Note that e1 should be of a header stack or tuple type.

And for field access,

  • e.x is local compile-time known if e is local compile-time known.
  • e.x is compile-time known if e is compile-time known.
  • Note that e should be of a struct, header, or header union type.

@jaehyun1ee jaehyun1ee closed this Nov 25, 2024
@jaehyun1ee jaehyun1ee deleted the ctk-access branch November 25, 2024 05:10
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.

1 participant