Skip to content

Commit fc6b084

Browse files
authored
Clarify the representation of Boolean value true (#898)
* Add text about true's representation * Add new unspecified entry
1 parent 5ea676b commit fc6b084

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

standard/portability-issues.md

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ A conforming implementation is required to document its choice of behavior in ea
4444
## B.4 Unspecified behavior
4545

4646
1. The time at which the finalizer (if any) for an object is run, once that object has become eligible for finalization ([§7.9](basic-concepts.md#79-automatic-memory-management)).
47+
1. The representation of `true` ([§8.3.9](types.md#839-the-bool-type)).
4748
1. The value of the result when converting out-of-range values from `float` or `double` values to an integral type in an `unchecked` context ([§10.3.2](conversions.md#1032-explicit-numeric-conversions)).
4849
1. The exact target object and target method of the delegate produced from an *anonymous_method_expression* contains ([§10.7.2](conversions.md#1072-evaluation-of-anonymous-function-conversions-to-delegate-types)).
4950
1. The layout of arrays, except in an unsafe context ([§12.8.16.5](expressions.md#128165-array-creation-expressions)).

standard/types.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ The `decimal` type has greater precision but may have a smaller range than the f
377377
378378
### 8.3.9 The Bool type
379379
380-
The `bool` type represents Boolean logical quantities. The possible values of type `bool` are `true` and `false`.
380+
The `bool` type represents Boolean logical quantities. The possible values of type `bool` are `true` and `false`. The representation of `false` is described in [§8.3.3](types.md#833-default-constructors). Although the representation of `true` is unspecified, it shall be different from that of `false`.
381381
382382
No standard conversions exist between `bool` and other value types. In particular, the `bool` type is distinct and separate from the integral types, a `bool` value cannot be used in place of an integral value, and vice versa.
383383

0 commit comments

Comments
 (0)