Thread overview
[Issue 22293] Nullable should define opCast!bool
Dec 17, 2022
Iain Buclaw
Jul 31
Dlang Bot
Aug 01
Dlang Bot
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=22293

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P4

--
July 31
https://issues.dlang.org/show_bug.cgi?id=22293

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |pull

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@pbackus created dlang/phobos pull request #9039 "Fix Bugzilla 22293: opCast!bool for Nullable" fixing this issue:

- Fix Bugzilla 22293: opCast!bool for Nullable

  The second opCast overload is necessary to allow built-in implicit
  conversions (e.g., mutable to const) to be performed explicitly via a
  cast expression. Nullable.opEquals depends on this behavior.

https://github.com/dlang/phobos/pull/9039

--
August 01
https://issues.dlang.org/show_bug.cgi?id=22293

Dlang Bot <dlang-bot@dlang.rocks> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |FIXED

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/phobos pull request #9039 "Fix Bugzilla 22293: opCast!bool for Nullable" was merged into master:

- fc83d371c21ca1b1f71d6dc3e6dde13b0de50ab9 by Paul Backus:
  Fix Bugzilla 22293: opCast!bool for Nullable

  The second opCast overload is necessary to allow built-in implicit
  conversions (e.g., mutable to const) to be performed explicitly via a
  cast expression. Nullable.opEquals depends on this behavior.

https://github.com/dlang/phobos/pull/9039

--