Issue #722: Document restrictions on types IH and EH in PSA#1027
Issue #722: Document restrictions on types IH and EH in PSA#1027jafingerhut wants to merge 1 commit intop4lang:mainfrom
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.