[Issue 24499] foreach over a ref parameter to an rvalue should be an error

d-bugmail at puremagic.com d-bugmail at puremagic.com
Sun Apr 14 13:13:02 UTC 2024


https://issues.dlang.org/show_bug.cgi?id=24499

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

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

--- Comment #2 from Dlang Bot <dlang-bot at dlang.rocks> ---
@ntrel created dlang/dmd pull request #16381 "[foreach] Deprecate `ref` for
array index or range parameter" fixing this issue:

- Deprecate `ref` for array index or range foreach parameter

  Fix Bugzilla 24499 - foreach over a ref parameter to an rvalue should be an
error
  Fix Bugzilla 24232 - ref for index of foreach for arrays is not allowed by
spec but accepted by compiler

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

--


More information about the Digitalmars-d-bugs mailing list