You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: p4-16/spec/P4-16-spec.adoc
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -8101,6 +8101,8 @@ The following are local compile-time known values:
8101
8101
- Structure-valued expressions, where all fields are local compile-time known values.
8102
8102
- Expressions evaluating to a list type, where all elements are local compile-time known values.
8103
8103
- Legal casts applied to local compile-time known values.
8104
+
- Indexing a local compile-time known stack or tuple value with a local compile-time known index.
8105
+
- Accessing a field of a local compile-time known struct, header, or header union value.
8104
8106
- The following expressions (`+`, `-`, `|+|`, `|-|`, `*`, `/ `, `%`, `!`, `&`, `|`, `^`, `&&`, `||`, `<< `, `>>`, `~`, `/`, `>`, `<`, `==`, `!=`, `<=`, `>=`, `++`, `[:]`, `?:`) when their operands are all local compile-time known values.
8105
8107
- Expressions of the form `e.minSizeInBits()`, `e.minSizeInBytes()`, `e.maxSizeInBits()` and `e.maxSizeInBytes()` where the type of `e` is not generic.
8106
8108
@@ -8113,6 +8115,8 @@ The following are compile-time known values:
8113
8115
- Structure-valued expressions, where all fields are compile-time known values.
8114
8116
- Expressions evaluating to a list type, where all elements are compile-time known values.
8115
8117
- Legal casts applied to compile-time known values.
8118
+
- Indexing a compile-time known stack or tuple value with a compile-time known index.
8119
+
- Accessing a field of a compile-time known struct, header, or header union value.
8116
8120
- The following expressions (`+`, `-`, `|+|`, `|-|`, `*`, `/ `, `%`, `cast`, `!`, `&`, `|`, `^`, `&&`, `||`, `<< `, `>> `, `~`, `/`, `>`, `<`, `==`, `!=`, `<=`, `>=`, `++`, `[:]`, `?:`) when their operands are all compile-time known values.
8117
8121
- Expressions of the form `e.minSizeInBits()`, `e.minSizeInBytes()`, `e.maxSizeInBits()` and `e.maxSizeInBytes()` where the the type of `e` is generic.
0 commit comments