Thread overview
[Issue 20362] dmd fails to infer scope parameter for delegate
Nov 06, 2019
ZombineDev
Jan 10, 2020
Mathias LANG
Feb 05, 2020
Atila Neves
Feb 05, 2020
Dlang Bot
Feb 05, 2020
Dlang Bot
Feb 06, 2020
Dlang Bot
November 06, 2019
https://issues.dlang.org/show_bug.cgi?id=20362

ZombineDev <petar.p.kirov@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |petar.p.kirov@gmail.com

--
January 10, 2020
https://issues.dlang.org/show_bug.cgi?id=20362

Mathias LANG <pro.mathias.lang@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |safe
                 CC|                            |pro.mathias.lang@gmail.com
           Hardware|x86_64                      |All
                 OS|Linux                       |All

--
February 05, 2020
https://issues.dlang.org/show_bug.cgi?id=20362

--- Comment #1 from Atila Neves <atila.neves@gmail.com> ---
Note: the code was taken out of context, but the reason it's *really* important is that it occurs in Throwable.toString

--
February 05, 2020
https://issues.dlang.org/show_bug.cgi?id=20362

--- Comment #2 from Dlang Bot <dlang-bot@dlang.rocks> ---
@atilaneves updated dlang/dmd pull request #10506 "WIP (do not merge): Make `in` mean `scope const` in DIP1000" mentioning this issue:

- Non hacky way to get around issue 20362

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

--
February 05, 2020
https://issues.dlang.org/show_bug.cgi?id=20362

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

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

--- Comment #3 from Dlang Bot <dlang-bot@dlang.rocks> ---
@atilaneves created dlang/dmd pull request #10764 "Fix issue 20362 - always infer scope for lambdas" fixing this issue:

- Fix issue 20362 - always infer scope for lambdas

  Before, scope was only inferred if -preview=dip1000
  was used, now it always is.

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

--
February 06, 2020
https://issues.dlang.org/show_bug.cgi?id=20362

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 #10764 "Fix issue 20362 - always infer scope for lambdas" was merged into master:

- ac32a33c1dfdeec2b24dda175cbb1fe87778c012 by Atila Neves:
  Fix issue 20362 - always infer scope for lambdas

  Before, scope was only inferred if -preview=dip1000
  was used, now it always is.

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

--