Skip to content

Clarify that Booleans are serializable - #1413

Open
jaehyun1ee wants to merge 1 commit into
p4lang:mainfrom
jaehyun1ee:bool-serializable
Open

Clarify that Booleans are serializable#1413
jaehyun1ee wants to merge 1 commit into
p4lang:mainfrom
jaehyun1ee:bool-serializable

Conversation

@jaehyun1ee

Copy link
Copy Markdown
Contributor

Following the LDWG discussion on #1389, this PR clarifies in 7.1.4. The Boolean Type that boolean types are serializable, where true means 1 and false means 0.

Booleans were actually already implied to be serializable in the original spec, as bool was allowed within header types. Thus, this PR makes this point explicit by adding a sentence to the spec.

Signed-off-by: jaehyun1ee <99jaehyunlee@kaist.ac.kr>

@jafingerhut jafingerhut left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants