[Issue 24499] foreach over a ref parameter to an rvalue should be an error
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sat Apr 13 18:58:39 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=24499
elpenguino+D at gmail.com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |elpenguino+D at gmail.com
--- Comment #1 from elpenguino+D at gmail.com ---
I fully agree. I've been bitten by this same problem many times in the past
with incompletely-implemented ranges, and it can be fairly annoying to track
down the cause with dbi + a few layers of range interfaces.
If I recall correctly, there were many attempts to solve this in the past
(https://github.com/dlang/DIPs/blob/master/DIPs/other/DIP1022.md being one of
them), and there are many related issues, both open and closed.
- https://issues.dlang.org/show_bug.cgi?id=11934 ("fixed", but the provided
test case still fails)
- https://issues.dlang.org/show_bug.cgi?id=24232
- https://issues.dlang.org/show_bug.cgi?id=5306 (and the subsequent
https://issues.dlang.org/show_bug.cgi?id=6214 )
--
More information about the Digitalmars-d-bugs
mailing list