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

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Tue Dec 27 06:10:43 PST 2016


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

greenify <greeenify at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |greeenify at gmail.com

--- Comment #1 from greenify <greeenify at gmail.com> ---
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 :/

--


More information about the Digitalmars-d-bugs mailing list