DIP 1015--removal of implicit conversion from integer and character literals to bool--Community Review Round 1
Steven Schveighoffer
schveiguy at yahoo.com
Fri Jun 22 15:46:52 UTC 2018
On 6/22/18 11:31 AM, Jacob Carlborg wrote:
> On 2018-06-20 10:16, Mike Parker wrote:
>> This is the feedback thread for the first round of Community Review for
>> DIP 1015, "Deprecation and removal of implicit conversion from integer
>> and character literals to bool":
>
> The text says: "Only literals that evaluate to 0 or 1 are affected; all
> other literals are to remain unchanged" [1]. This goes against example A
> [2].
>
> [1]
> https://github.com/dlang/DIPs/blob/7c2c39243d0d747191f05fb08f87e1ebcb575d84/DIPs/DIP1015.md#description
>
>
> [2]
> https://github.com/dlang/DIPs/blob/7c2c39243d0d747191f05fb08f87e1ebcb575d84/DIPs/DIP1015.md#example-a
>
>
Which literals don't evaluate to 0 or 1 in example A?
Also, example A is just showing what currently compiles, not what is to
be affected.
-Steve
More information about the Digitalmars-d
mailing list