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

Arrays of non-header types #1320

Open
ChrisDodd opened this issue Oct 21, 2024 · 1 comment
Open

Arrays of non-header types #1320

ChrisDodd opened this issue Oct 21, 2024 · 1 comment

Comments

@ChrisDodd
Copy link
Contributor

P4 uses array syntax for header stacks, which are declared like arrays of a header type and can be indexed with normal (C/java) array indexing syntax, but also support some added special features (push/pop/next/last methods) which work on the header's valid bits.

Should we consider arrays of non-header types? These could not support those special methods, but could be used as normal arrays.

@jonathan-dilorenzo
Copy link
Collaborator

Discussed in P4 LDWG. We are generally supportive of adding this to the specification.

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

No branches or pull requests

2 participants