Thread overview
[Issue 22134] Deprecate returning a void value from a function
Jul 21, 2021
Iain Buclaw
Jul 21, 2021
Dlang Bot
[Issue 22134] Deprecate returning a discarded void value from a function
Jul 21, 2021
Iain Buclaw
Jul 07, 2022
Dlang Bot
July 21, 2021
https://issues.dlang.org/show_bug.cgi?id=22134

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw@gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw@gdcproject.org> ---
To be clear, this is only about void values with no side effects.  This is already done with ExpStatement and CommaExp with the use of the `discardValue`.

--
July 21, 2021
https://issues.dlang.org/show_bug.cgi?id=22134

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@ibuclaw created dlang/dmd pull request #12898 "fix Issue 22134 - Deprecate returning a void value from a function" fixing this issue:

- fix Issue 22134 - Deprecate returning a void value from a function

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

--
July 21, 2021
https://issues.dlang.org/show_bug.cgi?id=22134

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|Deprecate returning a void  |Deprecate returning a
                   |value from a function       |discarded void value from a
                   |                            |function

--
July 07, 2022
https://issues.dlang.org/show_bug.cgi?id=22134

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #12898 "fix Issue 22134 - Deprecate returning a discarded void value from a function" was merged into master:

- d6a07ccd0a2ab6ec757d54b40b5b0697a9d54144 by Iain Buclaw:
  fix Issue 22134 - Deprecate returning a discarded void value from a function

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

--