Thread overview
[Issue 22134] Deprecate returning a void value from a function
Jul 21
Dlang Bot
[Issue 22134] Deprecate returning a discarded void value from a function
July 21
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
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
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

--