-
Notifications
You must be signed in to change notification settings - Fork 82
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
The spec does not define equality for tuples or structs. #542
Comments
Makes sense to me. We may also want to consider defining it for headers. |
The language for structs includes a requirement that their fields be recursively comparable
but this language is missing for headers
However, varbits can appear in headers but don't appear to be directly comparable p4-spec/p4-16/spec/P4-16-spec.mdk Lines 2968 to 2981 in 54e425a
It seems like we should allow comparing headers that contain varbits, but if we're going to allow that we should probably also define == and != for varbits so they can be directly compared as well. |
I think we should extend the spec rather than forbid these operations.
The text was updated successfully, but these errors were encountered: