-
Notifications
You must be signed in to change notification settings - Fork 80
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
Issue #722: Document restrictions on types IH and EH in PSA #1027
base: main
Are you sure you want to change the base?
Issue #722: Document restrictions on types IH and EH in PSA #1027
Conversation
Intended to address this issue #722 |
Why does section 7.2.7 of p4-16 working doc does not allow header_union as a member of struct? |
@hesingh If I go to the working draft of the P4_16 specification here: https://p4.org/p4-spec/docs/P4-16-working-spec.html#sec-type-nesting the first table I see has a row labeled "header_union", and in the column labeled "struct or tuple" the table entry says "allow". Do you see something different, or interpret that somehow as not being allowed? |
I see struct | allowed2 | error | allowed 7.2.7. Type nesting rulesThe table below lists all types that may appear as members of headers, header unions, structs, and tuples. Note that | | | Rationale: |
This row in that table: struct | allowed2 | error | allowed means: struct is allowed as a member in a header (the column heading of the second column), but see footnote 2. |
Note something is going on with the draft HTML generation though, see #1175 . The released spec 1.2.3 is correct. |
@jafingerhut Duh, got it, sorry. Your proposal looks fine. |
No description provided.