-
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
Is value_set's size compile-time known? #1347
Comments
Does p4c currently support using a constructor parameter of a control as the size of a value_set? Or the size of a P4 table? I hope that the answer is "yes". At least, I can imagine scenarios where that would be a nice-to-have choice available, as a P4 developer. If yes, then I would recommend against specifying that these should be local compile-time known values. |
Ah, yes, thank you for the comment :) The P4 spec mentions about the size property of a table,
So I would instead propose: |
Adding an explicit restriction that the size parameter of a |
Thank you for the comment! I made a related PR :) |
The spec mentions about the
size
argument to avalue_set
constructor:Although the phrase "hints to the compiler" already implies that the
size
argument should be alocal** compile-time known value, can we make it clearly written in the spec? (** edited)The text was updated successfully, but these errors were encountered: