[Issue 16145] enumerate can't work with ref foreach

2022-12-17 Thread d-bugmail--- via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16145

Iain Buclaw  changed:

   What|Removed |Added

   Priority|P1  |P2

--


[Issue 16145] enumerate can't work with ref foreach

2016-12-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16145

greenify  changed:

   What|Removed |Added

 CC||greeen...@gmail.com

--- Comment #1 from greenify  ---
This is due to `front` creating a new tuple on every call:

https://github.com/dlang/phobos/blob/master/std/range/package.d#L7740

Hence not even "refRanging" it works :/

--