-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Document bool cast semantics #34729
Copy link
Copy link
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and tools
Type
Fields
Give feedbackNo fields configured for issues without a type.
After a short debate on the IRC over whether
true as i32is guaranteed to be1, andfalse as i32is guaranteed to be0, I think that the semantics section on casts should explicitly describe what abool as integer_typecast does.