Thread overview
[Issue 22790] ref-return-scope is always ref-return, scope, unless return-scope appear in that order
Feb 19, 2022
Walter Bright
Feb 19, 2022
Walter Bright
Feb 19, 2022
Dlang Bot
Mar 09, 2022
Dlang Bot
Mar 10, 2022
Dlang Bot
Mar 11, 2022
Dlang Bot
Mar 21, 2022
Dlang Bot
February 19, 2022
https://issues.dlang.org/show_bug.cgi?id=22790

Walter Bright <bugzilla@digitalmars.com> changed:

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

--
February 19, 2022
https://issues.dlang.org/show_bug.cgi?id=22790

--- Comment #1 from Walter Bright <bugzilla@digitalmars.com> ---
For example:

    ref int foo(ref return scope int* p)

means "ref" and "return scope".

    ref int foo(ref scope return int* p)

means "return ref" and "scope".

--
February 19, 2022
https://issues.dlang.org/show_bug.cgi?id=22790

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

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

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@WalterBright updated dlang/dmd pull request #13691 "add inferReturnScope()"
fixing this issue:

- fix Issue 22790 ref-return-scope is always ref-return scope unless ref-scope appears in that order

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

--
March 09, 2022
https://issues.dlang.org/show_bug.cgi?id=22790

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@dkorpel updated dlang/dmd pull request #13693 "Make consistent use of `STC.returnScope`" fixing this issue:

- Fix issue 20881, 22790 - make ref-return-scope consistent

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

--
March 10, 2022
https://issues.dlang.org/show_bug.cgi?id=22790

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

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

--- Comment #4 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13691 "fix Issue 22790 - ref-return-scope is always ref-return, scope, unless return-scope appear in that order " was merged into master:

- d8d378b246f37ae453ae2958f0820c91683c3a59 by Walter Bright:
  fix Issue 22790 ref-return-scope is always ref-return scope unless ref-scope
appears in that order

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

--
March 11, 2022
https://issues.dlang.org/show_bug.cgi?id=22790

--- Comment #5 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13799 "Revert "fix Issue 22790 - ref-return-scope is always ref-return, scope, unless return-scope appear in that order "" was merged into master:

- 03d265c9833ab6dea8b29f12dcb073ce1ecf2d25 by Dennis:
  Revert "fix Issue 22790 ref-return-scope is always ref-return scope unless
ref-scope appears in that order (#13691)"

  This reverts commit f4437037b1b68a9b7b9197ff7649f82f97550e86.

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

--
March 21, 2022
https://issues.dlang.org/show_bug.cgi?id=22790

--- Comment #6 from Dlang Bot <dlang-bot@dlang.rocks> ---
dlang/dmd pull request #13693 "Fix issue 20881, 22790 - make ref-return-scope consistent" was merged into master:

- fce2d6529550931dc7ed35f904bbc7a6ac0cd8f0 by dkorpel:
  Fix issue 20881, 22790 - make ref-return-scope consistent

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

--