Thread overview
[Issue 22108] DIP1000 parameter mistakenly interpreted as return scope instead of scope
Jul 07, 2021
Walter Bright
Jul 07, 2021
Dlang Bot
Jul 07, 2021
Walter Bright
May 17
Dlang Bot
July 07, 2021
https://issues.dlang.org/show_bug.cgi?id=22108

Walter Bright <bugzilla@digitalmars.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe

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

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

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

--- Comment #1 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright updated dlang/dmd pull request #12817 "fix Issue 21868 - DIP1000 doesn't catch pointer to struct temporary" fixing this issue:

- fix Issue 22108 - DIP1000 parameter mistakenly interpreted as return scope instead of scope

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

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

Walter Bright <bugzilla@digitalmars.com> changed:

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

--
February 18
https://issues.dlang.org/show_bug.cgi?id=22108

--- Comment #2 from Walter Bright <bugzilla@digitalmars.com> ---
What's happening is the value of p is being returned, and `return ref` and `scope` should prevent the value of p being returned.

--
May 17
https://issues.dlang.org/show_bug.cgi?id=22108

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 #12817 "fix Issue 22108 - parameter mistakenly interpreted as return scope instead of scope" was merged into master:

- 815570c3e6085e9b062e1bf57c8951a734de166b by Walter Bright:
  fix Issue 22108 - DIP1000 parameter mistakenly interpreted as return scope
instead of scope

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

--