Thread overview
[Issue 10560] Enum typed as int with value equal to 0 or 1 prefer bool over int overload
Nov 12, 2017
Mike
Sep 16, 2018
Mike Franklin
Nov 12, 2018
Walter Bright
Nov 14, 2018
Sprink
Jun 25, 2019
RazvanN
Jun 27, 2019
Dlang Bot
Jun 26, 2020
Walter Bright
November 12, 2017
https://issues.dlang.org/show_bug.cgi?id=10560

Mike <slavo5150@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=9999

--
September 16, 2018
https://issues.dlang.org/show_bug.cgi?id=10560

Mike Franklin <slavo5150@yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull
                 CC|                            |slavo5150@yahoo.com

--- Comment #3 from Mike Franklin <slavo5150@yahoo.com> ---
A DIP has been submitted to address this issue: https://github.com/dlang/DIPs/blob/master/DIPs/DIP1015.md

A PR implementing the DIP can be found at https://github.com/dlang/dmd/pull/7310

--
November 12, 2018
https://issues.dlang.org/show_bug.cgi?id=10560

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |bugzilla@digitalmars.com
         Resolution|---                         |INVALID

--- Comment #4 from Walter Bright <bugzilla@digitalmars.com> ---
Rejected for same reason as https://issues.dlang.org/show_bug.cgi?id=9999

--
November 14, 2018
https://issues.dlang.org/show_bug.cgi?id=10560

Sprink <sprink.noreply@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=19399

--
June 25, 2019
https://issues.dlang.org/show_bug.cgi?id=10560

RazvanN <razvan.nitu1305@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |industry
             Status|RESOLVED                    |REOPENED
                 CC|                            |razvan.nitu1305@gmail.com
         Resolution|INVALID                     |---

--- Comment #5 from RazvanN <razvan.nitu1305@gmail.com> ---
Upon discussion with Andrei, an enumerated value is not a literal, hence it is subject to regular type checking and cannot be polysemous. See also https://issues.dlang.org/show_bug.cgi?id=19399 which is causing trouble in industrial application.

--
June 27, 2019
https://issues.dlang.org/show_bug.cgi?id=10560

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
@RazvanN7 created dlang/dmd pull request #10099 "Fix Issues 19399 and 10560 - Different Conversion Rules for Same Value and Type Enum" fixing this issue:

- Fix Issues 19399 and 10560 - Different Conversion Rules for Same Value and Type Enum

https://github.com/dlang/dmd/pull/10099

--
June 26, 2020
https://issues.dlang.org/show_bug.cgi?id=10560

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |RESOLVED
         Resolution|---                         |INVALID

--- Comment #7 from Walter Bright <bugzilla@digitalmars.com> ---
See detailed explanation in https://issues.dlang.org/show_bug.cgi?id=19399

This is not a bug, it is a misunderstanding of how match levels and partial ordering works.

--